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.
# 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
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 3 years, 5 months agosafodz
2 years, 8 months agoTesto321
7 months, 3 weeks agoGbecker
3 years, 2 months agoSTFN2019
2 years, 9 months agomaxim_sk
Highly Voted 1 year, 12 months agogaven186
Most Recent 2 months ago14_aman
2 years, 1 month agomattd81
2 years, 3 months agovira5489
2 years, 7 months agoxXxM__JxXx
2 years, 3 months agogunwantk
2 years, 8 months ago