I try to set for NEW created files/directories in /home/test:
- group to "test"
- right to "770"
This works for the group (1).
chown :test /home/test
chmod g+s /home/test
But I do not get it for the rights (2).
I want to set this behaviour to the directory /home/test and not to a user-setting (umask).
g+s
is for setting group ID, and thus called "set GID" or " SGID" (bit). Sticky bit would bet
. Apart from that: How is permissions770
related to you settingg+s
?770
translates toug=rwx
. Also: If you know the desired octal permission, why not use it withchmod
? – FelixJN Jan 02 '24 at 10:38