303-300 · Question #25
Which command is used to view the access control list of a file?
The correct answer is C. getfacl. getfacl (Get File Access Control List) is the correct command - it reads and displays the ACL entries for a file or directory, showing which users and groups have what permissions beyond the standard owner/group/other model. ls lists directory contents and can show basic…
Question
Which command is used to view the access control list of a file?
Options
- Als
- Bchmod
- Cgetfacl
- Dsetfacl
How the community answered
(26 responses)- B4% (1)
- C88% (23)
- D8% (2)
Explanation
getfacl (Get File Access Control List) is the correct command - it reads and displays the ACL entries for a file or directory, showing which users and groups have what permissions beyond the standard owner/group/other model.
- ls lists directory contents and can show basic permission bits (
ls -l), but does not display extended ACL entries. - chmod modifies standard Unix permissions; it neither reads nor displays ACLs.
- setfacl is the counterpart to
getfacl- it sets or modifies ACL entries, not views them.
Memory tip: Think of the prefix - getfacl = retrieve/view, setfacl = write/change. If you can get it, you can read it; if you can set it, you can change it.
Topics
Community Discussion
No community discussion yet for this question.