Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get ACL for file permission to work in Linux?

I don't care kernel version or distribution. I will do a clean install anyway. Is there a KERNEL/FS supported ACL? If I choose Linux, am I stuck with UGO approach to file permissions?


share|improve this question
up vote 6 down vote accepted

In addition to installing the packages and hving a kernel that supports it you must mount the filesystem with the acl option. ACLs are supported in most of the popular filesystems like ext3, ext2, jfs, and reiser.

Here are a couple links that may help you get started.

share|improve this answer

Three steps:

  1. Install acl, by running 'sudo apt-get install acl' (works on ubuntu and debian)

  2. Enable file system option acl, by remounting the mount point containing the files needed to be managed. For example, if the file in question is under /, run 'sudo mount -o remount,acl /', then run 'mount' to see if the option has been enabled. If not, then acl is either not supported by your kernel or the filesystem. You can add the option to fstab after testing.

  3. Edit the acl. For example: 'setfacl -m username:r-x'

Hope this will help starters.

share|improve this answer

Simply install the relevant package. On Debian-based distros, the package is called "acl". I'm sure other distros ship it as well.

You'll get getfacl and setfacl from that package.

share|improve this answer
Do I need special kernel support? Do I need a specific file system? – Pablo Santa Cruz May 20 '09 at 15:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.