Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I have a file that I think I should be able to execute. It shows these permissions with ls -lah:

-rw-rwxr--+ foo foo-group

And these with getfacl myfile:

# file: app/console
# owner: foo
# group: foo-group

I remember executing sudo setfacl -m u:`whoami`:rwx.

I think I got the setfacl command right, since getfacl shows user:foo:rwx. But I still can't execute it. Then what's the point of setfacl, if it can't override chmod?

share|improve this question
up vote 1 down vote accepted

I understand the acl(5) man page (yes, it is a bit confusing) as stating that the permission bits for the owner/group are always applicable to those, the ACLs are for others. E.g., you could give user bar permission to rwx, not foo (the owner's permissions are given by the standard permission bits). If my reading is correct, what you are doing is even illegal (there should be no repeat user/group entries in the ACL).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .