The problem has to do with sharing data: two of my users (marleen and heleanne) don't have any technical knowledge, but they are working on some project together. I added both of them to the "barbiecoro" group, and set SGID for the directory:
Quote:
chmod -R 2775 barbiecoro/
ls -l
drwxrwsr-x 6 marleen barbiecoro 4096 2005-12-31 18:53 barbiecoro
|
Now both users have acces to the directory barbiecoro. But when eg heleanne creates a new directory within this directory, and later marleen wants to create a file in the directory heleanne just created, marleen won't get permission. This is because the directory heleanne created has file permissions drwxr-sr-x, so the group barbiecoro does not have write permissions.
This directory resides on /dev/hda5: It is mounted in /etc/fstab like:
/dev/hda5 /mnt/data ext3 defaults 0 2
I changed this to
/dev/hda5 /mnt/data ext3 defaults,umask=002 0 2
(following the fstab hint), but like this hda5 fails to mount (unrecognised option)
setting UMASK=002 in /etc/login.defs doesn't seem to have any effect, even after rebooting.