Which command sets an ACL that gives user alice read permission on a file currently with 644 permissions?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which command sets an ACL that gives user alice read permission on a file currently with 644 permissions?

Explanation:
ACLs extend the standard permission bits by letting you grant access to specific users without changing owner/group/other permissions. To give user alice exactly read permission on a file that currently has 644, add a per-user ACL entry with read-only access: setfacl -m u:alice:r-- filename. This creates or updates alice’s ACL so she can read the file, without granting write permission. Reading the ACL (getfacl) or changing ownership (chown) won’t modify access rights, and granting rw- (setfacl -m u:alice:rw- filename) would give alice write access as well, which isn’t what’s requested.

ACLs extend the standard permission bits by letting you grant access to specific users without changing owner/group/other permissions. To give user alice exactly read permission on a file that currently has 644, add a per-user ACL entry with read-only access: setfacl -m u:alice:r-- filename. This creates or updates alice’s ACL so she can read the file, without granting write permission. Reading the ACL (getfacl) or changing ownership (chown) won’t modify access rights, and granting rw- (setfacl -m u:alice:rw- filename) would give alice write access as well, which isn’t what’s requested.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy