Suggested Answer:See explanation below.
1. chmod g+s /data 2. Verify using: ls -ld /data Permission should be like this: 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
As per my understanding, files and folders created under /data should inherit the owner: group permission.
we can achieve this by setting GUID.
chmod 2770 /data
2 –setGUID
7 –Set users full perissions
7 –set group full permission
0 –set other no permissions
It is not mentioned that group has 7 permission set. Simply 'chmod g+s /data' is enough it would automatically take care what current permissions are on the folder for group.
upvoted 5 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
cloudyhr
1 year agokitkat
6 months, 3 weeks ago