exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 56 discussion

Actual exam question from RedHat's EX200
Question #: 56
Topic #: 1
[All EX200 Questions]

SIMULATION -
Who ever creates the files/directories on a data group owner should automatically be in the same group owner as data.

Show Suggested Answer Hide Answer
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cloudyhr
1 year ago
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
upvoted 1 times
kitkat
6 months, 3 weeks ago
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
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago