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 1 Question 23 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 23
Topic #: 1
Create a collaborative directory/home/admins with the following characteristics:
Group ownership of /home/admins is adminuser
The directory should be readable, writable, and accessible to members of adminuser, but not to any other user. (It is understood that root has access to all files and directories on the system.) Files created in /home/admins automatically have group ownership set to the adminuser group

Suggested Answer:

mkdir /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins

by ubiquituz at Nov 26, 2024, 12:25 PM

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-12-01 06:31:20
#verify the dir permissions
ls -ld /home/admins
upvoted 1 times
...
whitebeard pirate
2024-12-01 06:30:30
#create the group
groupadd adminuser

#create the collaborative/shared dir
mkdir -p /home/admins

#give read and write permission to the dir owner
chmod 770 /home/admins
you can also use this cmd: chmod 2770 /home/admins to set the SGID bit and owner and group member permissions

#set the SGID
chmod g+s /home/admins
upvoted 1 times
...
ubiquituz
2024-11-26 12:25:41
To create a collaborative directory /home/admins on Red Hat 9 with the specified characteristics, follow these steps:
1
Create the Group adminuser
Run the following command to create the adminuser group if it doesn't already exist:
sudo groupadd adminuser
2
Create the Directory /home/admins
Create the directory /home/admins:
sudo mkdir /home/admins
3
Set Group Ownership
Assign the group adminuser as the group owner of the /home/admins directory:
sudo chown :adminuser /home/admins
4
Set Permissions
Set permissions so that:
Members of the adminuser group can read, write, and access the directory.
sudo chmod 770 /home/admins
This ensures:
rwx (read, write, execute) permissions for the owner and group.
No permissions for others.
5
Enable SGID (Set Group ID)
To ensure that files created within /home/admins automatically inherit the group ownership of adminuser, set the SGID bit on the directory:
sudo chmod g+s /home/admins
This modifies the directory permissions to look like drwxrws---. The s in the group permissions indicates that the SGID bit is active.
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.