Red_Hat
RH302 · Question #45
Whoever creates the files/directories on /storage, their group owner should automatically be the same group owner of /storage.
chmod g+s /storage Verify using: ls -ld /storage Permission should be like: drwxrws--- 2 root sysusers 4096 Mar 16 18:08 /storage If SGID bit is set on directory then whoever creates files in the directory will have the same group owner as the directory. To Set the SGID bit…
Security
Question
Whoever creates the files/directories on /storage, their group owner should automatically be the same group owner of /storage.
Explanation
chmod g+s /storage Verify using: ls -ld /storage Permission should be like: drwxrws--- 2 root sysusers 4096 Mar 16 18:08 /storage If SGID bit is set on directory then whoever creates files in the directory will have the same group owner as the directory. To Set the SGID bit: chmod g+s directory To Remove the SGID bit: chmod g-s directory
Topics
#SGID#setgid bit#group inheritance#chmod g+s
Community Discussion
No community discussion yet for this question.