Let's say user has Directory1 and it contains File1 File2 CantBeDeletedFile How to make so the user would never be allowed to delete the CantBeDeletedFile?
If I change the ownership of Directory1 and remove write permissions users wouldn't be able to delete any file. They also wouldn't be able to add new files etc.
I just want to be able to set some files which would never be deleted.
More specific description.
I am creating user profiles. I am creating application launcher files in their Desktop. So I want to set some launcher files (.desktop) and make them so user can only launch them and they couldn't rename nor delete, just launch.
Currently if user owns the directory which contain any file. He can delete.
If there is no generic way for all *nix, it's a Linux and ext4 FS.