nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #703

LFCS Question #703: Real Exam Question with Answer & Explanation

The correct answer is C: setfacl-m user: sally; rwstrategy.txt. To grant user sally read and write access to strategy.txt using extended ACLs, the setfacl command with the modify (-m) option and specific user entry is required.

Submitted by yaw92· Apr 18, 2026User and Group Management

Question

What command should be invoked to give the user sally read and write, but not execute, access to the file strategy.txt using Extended ACL entries?

Options

  • Asetfacl -setperm sally:rw strategy.txt
  • Bsetfacl -m user::sally+rw strategy.txt
  • Csetfacl-m user: sally; rwstrategy.txt
  • Dsetfacl -setperm user:sally+rw strategy.txt

Explanation

To grant user sally read and write access to strategy.txt using extended ACLs, the setfacl command with the modify (-m) option and specific user entry is required.

Common mistakes.

  • A. The setperm option is not a standard setfacl subcommand or option for modifying specific user permissions.
  • B. The syntax user::sally+rw is incorrect; user:: usually refers to the file owner's effective permissions, not a specific named user, and +rw is not the correct way to specify permissions within setfacl.
  • D. Similar to option A, setperm is not a valid setfacl option for setting specific user permissions.

Concept tested. Linux Extended ACLs with setfacl

Reference. https://man7.org/linux/man-pages/man1/setfacl.1.html

Topics

#ACLs#File Permissions#setfacl command#User Permissions

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions