Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 30 discussion

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

SIMULATION -
Create a Shared Directory.
Create a shared directory /home/admins, make it has the following characteristics:
/home/admins belongs to group adminuser
This directory can be read and written by members of group adminuser Any files created in /home/ admin, group automatically set as adminuser.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
mkdir /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jahute27
Highly Voted 2 years, 6 months ago
mkdir -p /home/admins groupadd adminuser chown :adminuser /home/admins setfacl -m g:adminuser:rwx /home/admins chmod g+s /home/admins/
upvoted 8 times
sazz82
11 months ago
chmod -R g+s /home/admins/ > what about this option ?
upvoted 1 times
...
Brabus
1 year, 1 month ago
This directory can be read and written, so setfacl -m g:adminuser:rw- /home/admins
upvoted 3 times
...
...
kitkat
Most Recent 1 year, 9 months ago
mkdir -p /home/admins cd /home chown :adminuser /home/admins chmod g+rws/home/admins --to test useradd -g adminuser test su - test cd /home/admins touch testfile ls -ltr
upvoted 3 times
...
Javier_Cruz
1 year, 11 months ago
groupadd adminuser mkdir /home/admins chown :adminuser /home/admins chmod 770 /home/admins chmod g+s /home/admins With any user in adminuser group touch /home/admins/file ls -ltr /home/admins -rw-r--r--. 1 test1 adminuser 0 Apr 9 20:19 file
upvoted 1 times
...
kenkct
2 years ago
$ sudo su # mkdir -p /home/admins # groupadd adminuser # chown :adminuser /home/admins # chmod g+rws /home/admins # getfacl /home/admins
upvoted 3 times
...
kenkct
2 years ago
$ sudo su # mkdir /home/admins # groupadd adminuser # chown :adminuser /home/admins # chmod g+rws /home/admins # getfacl /home/admins
upvoted 1 times
...
Harvard
2 years, 8 months ago
why not use chown :adminuser /admins as opposed to chgrp?
upvoted 2 times
tester27
1 year, 10 months ago
they're the same
upvoted 1 times
...
...
blackmrx
2 years, 9 months ago
mkdir /home/admins groupadd adminuser chgrp adminuser /home/admins chmod g=rwx /home/admins chmod g+s /home/admins To test for it : useradd -g adminuser test sudo -u test touch /home/admins/test sudo -u test ls
upvoted 3 times
kitkat
1 year, 9 months ago
question only talks about read, write and there is no mention of execute. Why were we giving execute permission ?
upvoted 2 times
Dewitts68
10 months, 2 weeks ago
execute permissions on a folder = Can Access
upvoted 1 times
...
...
...
dax
3 years, 3 months ago
mkdir /home/admins groupadd adminuser ls -ld /home/admins chgrp adminuser /home/admins ls -ld /home/admins chmod g+w /home/admins
upvoted 3 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 ...