3
1
I want to create a directory, for example:
/public/all
But I want it so that if you create a file in all, the owner is root, but anyone with access to the /public/all folder can delete/edit/etc the file, just not change the permissions. (I will use a self-created "setx" application to change the execute value if needed.)
Reason for this, I don't want you to be able to deny other users write/read access to files in /public/all. I heard setuid on directories doesn't work for that.
The
chmod
at the end will remove executable flags. This effect might be desired in such a directory (unless it's subdirectories), but I thought I'd mention that. – Daniel Beck – 2011-11-26T14:03:10.067Ah, I forgot that.
chmod ugo=rwX
should work. – user1686 – 2011-11-26T14:12:48.277