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
setpermoption is not a standardsetfaclsubcommand or option for modifying specific user permissions. - B. The syntax
user::sally+rwis incorrect;user::usually refers to the file owner's effective permissions, not a specific named user, and+rwis not the correct way to specify permissions withinsetfacl. - D. Similar to option A,
setpermis not a validsetfacloption 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.