Home » RedHat » EX200 » Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.
Correct Answer: Answer see in the explanation.
Explanation/Reference:
# cp /etc/fstab /var/tmp/
# chgrp admin /var/tmp/fstab
# setfacl -m u:user1:rwx /var/tmp/fstab
# setfacl -m u:user2:— /var/tmp/fstab
# ls -l
-rw-rw-r–+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab
Download Printable PDF. VALID exam to help you PASS.
|
|
should be setfacl -m u:user1:rw- /var/tmp/fstab to get the correct outcome