LFCS · Question #359
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…
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
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.
How the community answered
(33 responses)- A18% (6)
- B6% (2)
- C73% (24)
- D3% (1)
Why each 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.
The command `setfacl m user:hugh:r afile.txt` appears syntactically correct for setting an ACL.
If there were no user named hugh, `setfacl` would likely return an error about an invalid user, not "Operation not supported."
Even if the kernel is compiled with ACL support, a specific filesystem must be mounted with the `acl` option in its `/etc/fstab` entry or during a manual mount command for ACLs to be enabled and functional on that filesystem.
If `afile.txt` didn't exist, `setfacl` would report "No such file or directory."
Concept tested: Filesystem ACL mount option
Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/chap-acls
Topics
Community Discussion
No community discussion yet for this question.