[olug] share a folder rw, but not deletable?
Jay Hannah
jay at jays.net
Wed Mar 26 13:23:34 UTC 2003
Brian Wiese wrote:
> Is there a way in UNIX to make a folder with read+write permissions for
> some group of users, but only allow them to read and write to the
> folder... not actually delete the folder itself?
folder -> directory
A user can delete a directory only if they have write permissions to the
directory above the directory in question.
If your group of users is called "users":
mkdir aaa
mkdir aaa/bbb
chgrp users aaa/bbb
chmod g+w aaa/bbb
Now any member of the group "users" can write files in aaa/bbb, but they
can't delete the directory aaa/bbb because they don't have write
permissions to aaa.
Doea that make sense? I thought the example might help...?
Cheers,
Jay Hannah
Omaha Perl Mongers: http://omaha.pm.org
More information about the OLUG
mailing list