update a file but not delete permisions
Hi Fellows !! Is any way in which I can set any attribute for a File that allow only updates and can't delete the file ? any tips with Samba or CHMOD or CHATTR ??? thanks
chattr +a filename allows you to append, but not otherwise to modify or delete the file. I think that is the closest you'll get in ext2. You may can do more in ReiserFS. JDL Linux News User wrote:
Hi Fellows !!
Is any way in which I can set any attribute for a File that allow only updates and can't delete the file ?
any tips with Samba or CHMOD or CHATTR ???
thanks
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
On 15 Feb, John D Lamb wrote:
chattr +a filename allows you to append, but not otherwise to modify or delete the file. I
Linux News User wrote:
Is any way in which I can set any attribute for a File that allow only updates and can't delete the file ?
any tips with Samba or CHMOD or CHATTR ???
"Delete" usually means "remove the file from the directory". You can prevent that by removing write permissions from the directory: "chmod -w directory-name". Of course, you won't be able to delete any file in that directory. Or add any new ones. Also, it does not prevent you from overwriting the file. For example, "echo >directory-name/file" still replaces the contents of 'file' with a line-feed. Changing directory permissions prevents deletion. But it does not prevent overwriting. -- Robert Wohlfarth rjwohlfar@bigfoot.com "Is not life more important than food, and the body more important than clothes?" -- Matthew 6:25b
participants (3)
-
John D Lamb
-
Linux News User
-
rjwohlfar@bigfoot.com