nerdexam
Linux_Foundation

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.

Submitted by paula_co· Apr 18, 2026Storage Management

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.

How the community answered

(33 responses)
  • A
    18% (6)
  • B
    6% (2)
  • C
    73% (24)
  • D
    3% (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.

AThere is an error in the command line parameters.

The command `setfacl m user:hugh:r afile.txt` appears syntactically correct for setting an ACL.

BThere is no user on the system named hugh.

If there were no user named hugh, `setfacl` would likely return an error about an invalid user, not "Operation not supported."

CThe partition has not been mounted with the acl option.Correct

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.

DThe file afile.txt doesn't exist.

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

#ACLs#Filesystem#Mount options#Permissions

Community Discussion

No community discussion yet for this question.

Full LFCS Practice