exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 72 discussion

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

SIMULATION -
Who ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
chmod g+s /archive
Verify using: ls -ld /archive Permission should be like:
drwxrws--- 2 root sysuser 4096 Mar 16 18:08 /archive
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
6 months, 2 weeks ago
#Create a Directory mkdir archive #Set the GUID chmod g+s archive Now any file or folder created in the archive will have the same owner:group permissions as parent folder, in this case same as archive folder
upvoted 4 times
...
STFN2019
9 months, 4 weeks ago
Say we got data dir under home, so: chmod g+s data tar cvf backup.tar data
upvoted 1 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