LFCS · Question #359
LFCS Question #359: Real Exam Question with Answer & Explanation
The correct answer is C: The partition has not been mounted with the acl option.. The "Operation not supported" error from setfacl indicates that the filesystem where the file resides has not been mounted with the acl option, despite kernel support.
Question
You are certain that your kernel has been compiled with ACL support, however, when you try to set an ACL on a file, you get the following output: % setfacl m user:hugh:r afile.txt setfacl: afile.txt: Operation not supported What is the most likely reason for this problem?
Options
- AThere is an error in the command line parameters.
- BThere is no user on the system named hugh.
- CThe partition has not been mounted with the acl option.
- DThe file afile.txt doesn't exist.
Explanation
The "Operation not supported" error from setfacl indicates that the filesystem where the file resides has not been mounted with the acl option, despite kernel support.
Common mistakes.
- A. The command
setfacl m user:hugh:r afile.txtappears syntactically correct for setting an ACL. - B. If there were no user named hugh,
setfaclwould likely return an error about an invalid user, not "Operation not supported." - D. If
afile.txtdidn't exist,setfaclwould report "No such file or directory."
Concept tested. Filesystem ACL mount option
Topics
Community Discussion
No community discussion yet for this question.