[clug-talk] File permissions: add but not modify/delete?
sgrover at open2space.com
Fri Nov 26 15:57:18 PST 2004
I still find Linux permissions to be somewhat of a black art, though I am
starting to get the hang of it... That said, I'll take a shot at this one.
The first step would be to ensure the user has write permission, but not read.
The second would be to change the ownership of the file.
So, something like so on the directory in question:
chmod o+w directory
chmod o-r directory
(or use the digit values for the permissions - I always have to look them up
unless it's 755).
and then a chown on the directory as well.
I believe you might also be able to use umask here to accomplish what you're
But, I'll defer to the gurus on the list, I'm sure I've missed something
On Friday 26 November 2004 16:15, William Astle wrote:
> Adil Kodian wrote:
> > On Fri, 26 Nov 2004 15:51:50 -0700, Curtis Sloan <curtis.sloan at shaw.ca>
> >>I have a directory that I want group 'x' to be able to write to, but not
> >>modify/delete existing files (yes, that would include files they just
> >> added). I'm no expert, but as far as I can tell standard *nix
> >> permissions don't have
> > set the sticky bit on and set gid.
> You missed the bit about users not being able to delete files they just
> added. The sticky bit would allow them to modify or delete the file.
> (They would still own it, after all.)
More information about the clug-talk