On Sun, 15 Oct 2006 16:58:25 +1200
Andrew Errington <[EMAIL PROTECTED]> wrote:

> PS Maybe I just want a big directory with the sticky bit set, and users 
> retain r/w access to their own files.

The sticky bit will allow only the file creator to automatically delete the 
file. That's handy, but anyone with write access to the file and directory and 
still force a delete so it's not foolproof.

You could do with the setgid bit set on /home/data/photos. Try the following:

chown root:photos /home/data/photos
chmod 2775 /home/data/photos

Users need the following umask set: 0002 ( wap it in /etc/profile )

Which will allow for files ( ie photos ) to be created with 
owner: <user>   rw
group: photos   rw
other:          r

permissions, and directories with the setgid bit set and
owner: <user>   rwx
group: photos   rwx
other:          r x

permissions. This will allow everyone to see your photos, and everyone added to 
the photos group to manipulate all photos. However, nobody not in the photos 
group will be able to save a file ):


Is this what you're after?


Steve

Reply via email to