# I think that in question is to name the file admin
cp /etc/fstab /var/tmp/admin
#to check try: cat /var/tmp/admin
setfacl -m u:user1:rw-,u:user2:--- /var/tmp/admin
#check correct permission with getfacl
getfacl /var/tmp/admin
"to /var/tmp name admin"
cp -p /etc/fstab /var/tmp/admin
chown user1 /var/tmp/admin
chmod 700 /var/tmp/admin
this way user1 as owner, user2 is considered as 'other' without access permission.
I have many doubts in this question . the question does not say for making owner to admin.
and I think question says admin and user1 give r w x permission, after seeing this question.
-- lets assume you do not have any user yet.
useradd -M user1
useradd -M user2
cp /etc/fstab /vat/tmp/
setfacl -m u:user1:rw- /var/tmp/fstab
setfacl -m u:user2:--- /vat/tmp/fstab
This section is not available anymore. Please use the main Exam Page.EX200 Exam Questions
Log in to ExamTopics
Sign in:
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.
adolfoale
Highly Voted 4 years, 2 months agosafodz
3 years, 5 months agoTesto321
1 year, 5 months agoGbecker
3 years, 11 months agoSTFN2019
3 years, 7 months agomaxim_sk
Highly Voted 2 years, 9 months agololoski
Most Recent 9 months, 1 week agogaven186
11 months, 2 weeks ago14_aman
2 years, 10 months agomattd81
3 years agovira5489
3 years, 4 months agoxXxM__JxXx
3 years agogunwantk
3 years, 6 months ago