I need some help with a shared directory on a linux server.
I made a group called web
I made a couple users called usr1 and usr2
usermod -a -G web usr1
usermod -a -G web usr2
I made a directory called test
chown root.web test -R
chmod 2775 test
Now I thought when usr1 creates a file in test, the file would have 664 permissions because of the guid? But when usr1 makes a file is is set to 644?
The file is owned by root.web
Did I do something wrong? How do I set the permissions on a folder so that when usr1 creates a file, usr2 can write to it?
Thanks in advance
I made a group called web
I made a couple users called usr1 and usr2
usermod -a -G web usr1
usermod -a -G web usr2
I made a directory called test
chown root.web test -R
chmod 2775 test
Now I thought when usr1 creates a file in test, the file would have 664 permissions because of the guid? But when usr1 makes a file is is set to 644?
The file is owned by root.web
Did I do something wrong? How do I set the permissions on a folder so that when usr1 creates a file, usr2 can write to it?
Thanks in advance