Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam EX200 Topic 3 Question 156 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 156
Topic #: 3
Who ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive.

Suggested Answer:

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

by whitebeard pirate at Nov 24, 2024, 11:35 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
whitebeard pirate
2024-11-24 11:35:03
1
sudo chmod g+s /archive
g+s: Sets the SetGID bit on the directory.
Verify the permission change using ls -ld /archive. The output should look like this:
drwxr-s--- 2 root archive 4096 Nov 24 10:00 /archive
The s in the group permission section (r-s) indicates that the SetGID bit is set.
2
Verify inheritance: Test by creating a file or directory inside /archive:
touch /archive/testfile
ls -l /archive
The group owner of testfile should match the group owner of /archive.
upvoted 1 times
...
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.