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