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 3 discussion

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

SIMULATION -
Create a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write, while other users are not allowed to access it. The files created by users from the same group should also be the admin group.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# cd /home/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Moram
Highly Voted 3 years, 7 months ago
If the group should only have read and write shouldn't the command be: chmod 760 /admins
upvoted 12 times
kitkat
1 year, 10 months ago
Permissions on the folder works different to that of files. Permissions needed are 2770 with 2760 users member of admin group will not be able to enter the folder.
upvoted 2 times
Mari685
1 year, 10 months ago
Hi can you give me some details about redhat
upvoted 1 times
...
...
...
Joeytechn9t
Highly Voted 2 years, 10 months ago
#mkdir /home/admins #groupadd admin #chown root:admin /admins #chmod 770 /admins #chmod g+s
upvoted 10 times
...
yajala
Most Recent 1 month, 3 weeks ago
I passed the RHSCA exam last week. This dump was useful but needs update for questions on writing simple shell scripts, container, Stratis and VDO. Thanks. Also, I think Redhat has increased the number of questions from 20 - 24. Mine were 24 questions on the exam. Thanks. https://medium.com/@darekhale91/latest-redhat-ex200-exam-dumps-2023-acd1c1922729
upvoted 2 times
Rich102
2 weeks ago
They shut the medium link down. Under investigation. Can you provide another exam dump please ?
upvoted 1 times
...
...
Rahul95
10 months, 3 weeks ago
#mkdir -p /home/admins #chgrp admin /home/admins #chmod 770 /home/admins - 7 is for max permission for dir and 6 is for files #chmod g+s /home/admins #su - harry #touch /home/admins/testfile #ls-ltr /home/admins/ - to verify
upvoted 3 times
...
techzideas
1 year, 2 months ago
mkdir -p /home/admins chown -R :admin /home/admins chmod 2070 /home/admins touch /home/admins/office.txt ll /home/admins Please Give me your views on this...
upvoted 1 times
radwan_maazon
1 year, 1 month ago
/home actualy exist so that you don't neet put -p
upvoted 1 times
...
...
syed2020
1 year, 10 months ago
Without granting x permissions, group users will not be able to access the folder so it should be chmod 770 /home/admins
upvoted 1 times
...
AbidBajwa
2 years, 6 months ago
mkdir admins groupadd admin chown :admin /home/admins chmod g+rw /home/admins chmod o-rwx /home/admins chmod g+s /homeadmins
upvoted 3 times
cloudyhr
2 years, 3 months ago
Did implemented practically and 770 is the correct answer chmod 2770 /home/admin same as above 3 chmod commands
upvoted 3 times
stoobie
2 years, 1 month ago
@cloudyhr Why do you have 2770 instead of just 770? And why is g+s necessary?
upvoted 1 times
stoobie
2 years, 1 month ago
I figured out the answer to my second question about g+s. The "s" (special permissions) is necessary so that files _created_ by users from the `admin` group are also _owned_ by the `admin` group.
upvoted 1 times
kitkat
1 year, 8 months ago
your first question's answer is same. 2 is equivalent of g+s
upvoted 1 times
...
...
...
...
...
sugisho
2 years, 9 months ago
which is correct permission /home/admin 760 or 770 ?
upvoted 2 times
AluBhorta
2 years, 4 months ago
2770 to be precise. it's because without exec permission, even group users won't be able to enter the dir (i.e. cd requires rx permission).
upvoted 1 times
Mari685
1 year, 10 months ago
can you help me in redhat need some details about it if possible dm me on instagram lvukhan123
upvoted 1 times
...
...
...
RHEL
3 years, 1 month ago
The right answer is chmod 770 because you need to have execution permission on the directory to have access to its content, so you can perform write and read process.
upvoted 4 times
golem1987
3 years ago
2770 should be to allow also inheritance for group permissions
upvoted 3 times
...
...
adolfoale
3 years, 3 months ago
For all of the above to work, the user must have the admin group as an additional group. Do the test.
upvoted 3 times
...
RedQuasar
3 years, 4 months ago
mkdir /home/admins chown :admin /home/admins chmod u=rw,o=--- /home/admins chmod g+s /home/admins
upvoted 3 times
...
Nhan
3 years, 7 months ago
2=Write 4 = read therefore r+w=6, Moran has the correct answer for setting chmod
upvoted 1 times
Darion81
3 years, 5 months ago
Depends. For directories - r - list files, w - add/del files, x - cd to that directory If yser should be able to enter it this dir should have x
upvoted 7 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 ...