0

I try to set for NEW created files/directories in /home/test:

  1. group to "test"
  2. 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).

FelixJN
  • 13,566
chris01
  • 571
  • g+s is for setting group ID, and thus called "set GID" or " SGID" (bit). Sticky bit would be t. Apart from that: How is permissions 770 related to you setting g+s? 770 translates to ug=rwx. Also: If you know the desired octal permission, why not use it with chmod? – FelixJN Jan 02 '24 at 10:38
  • I want to have new created directories with specific group and specific rights - automatically after creation. – chris01 Jan 02 '24 at 11:19
  • Ah, I now understand your question. You may set default ACL-entries for this. See here – FelixJN Jan 02 '24 at 13:18

0 Answers0