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