Red_Hat
RH202 · Question #31
Who ever creates the files/directories on /storage group owner should be automatically should be the same group owner of /storage.
1. chmod g+s /storage 2. 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 who every users creates the files on directory group owner automatically the owner of parent directory…
Users, Groups, and Permissions
Question
Who ever creates the files/directories on /storage group owner should be automatically should 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 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
#SGID bit#sticky group#inherited group ownership#chmod special bits
Community Discussion
No community discussion yet for this question.