Linux: Create files and direcotires but not delete them

Posted by Peraz on Server Fault See other posts from Server Fault or by Peraz
Published on 2012-10-02T07:40:21Z Indexed on 2012/10/02 9:40 UTC
Read the original article Hit count: 169

Filed under:
|
|

I have a process that create directories and files inside a working directory, ex:

/workingdir/file1
/workingdir/file2
/workingdir/dir1/file1
/workingdir/dir1/dir2/file1
/workingdir/dir1/file2

I need to avoid deletion/overwrites of created folders/files for that user, but allow subsequent folders/subfolders/files creation. I try permissions, gid, acl with no luck.

What is the correct way to do that ? (i can use a cron job if needed)

© Server Fault or respective owner

Related posts about linux

Related posts about permissions