directory attribute - protect from deleting?
I would like to make a directory that (and maybe its content) can not be deleted but files can be copied into it. The best solution would be chattr +a Directory but it does not work.
I create the directory (e.g., backup), and type chattr +a backup. It works so far:
lsattr -d backup
When I try to copy a file into it I get an error message:
cp: cannot create regular file `***': Operation not permitted
The file is created but its size is 0.
The +u attribute does not work at all, I can delete both directories and files with this attribute.
I also created a directory and changed the ownership to root.user and set the permissions to 770 but user also can delete the directory.
I have ext3 file system and use ubuntu 7.10
Does anyone have a tip?