0

What if I have a file on a Linux machine with user permissions of rw but assigned that user rwx permissions via ACL?

Will the ACL override that default user permissions and allow execute access?

nick@nick-XPS-9315:~$ cd /tmp
nick@nick-XPS-9315:/tmp$ touch test
nick@nick-XPS-9315:/tmp$ ll test
-rw-rw-r-- 1 nick nick 1210 Aug 11 09:37 test
nick@nick-XPS-9315:/tmp$ setfacl -m u:nick:rwx ./test
nick@nick-XPS-9315:/tmp$ ll test
-rw-rwxr--+ 1 nick nick 1210 Aug 11 09:37 test*
nick@nick-XPS-9315:/tmp$ getfacl test
# file: test
# owner: nick
# group: nick
user::rw-
user:nick:rwx
group::rw-
mask::rwx
other::r--
terdon
  • 242,166

1 Answers1

-1

I found a permissions hierarchy.

  • System immediately stops when finds a match at any step and does not proceed further.
  1. Is user owner? uses the user owner chmod permissions
  2. Any user ACLs? Unions ACL permissions and uses those ACL permissions
  3. Is group owner? uses the group owner chmod permissions
  4. Any group ACL's? Unions those ACL group permissions and uses those ACL permissions
  5. Get permissions of others entity