Red_Hat
RH302 · Question #80
Who ever creates the files/directories on /data group owner should be automatically should be the same group owner of /data.
1.chmod g+s /data 2.Verify using: ls -ld /data Permission should be like: drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /data If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory. To set the…
Security
Question
Who ever creates the files/directories on /data group owner should be automatically should be the same group owner of /data.
Explanation
1.chmod g+s /data 2.Verify using: ls -ld /data Permission should be like: drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /data If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory. To set the SGID bit: chmod g+s directory To Remove the SGID bit: chmod g-s directory
Topics
#setgid bit#directory permissions#group inheritance#chmod
Community Discussion
No community discussion yet for this question.