I have a group called webdev
and I want only the root and the memebers of the group webdev
to have write access on the directory /web
. Now, Here's the problem:
# chmod -R u=rwX,go=rX /web
# ls -l /web
total 4
-rw-r--r--. 1 root root 165 Mar 8 12:29 index.html
# ls -ld /web
drwxr-xr-x. 2 root root 24 Mar 8 12:34 /web
# setfacl -R -m g:webdev:rwX /web
# ls -ld
drwxrwxr-x+ 2 root root 24 Mar 8 12:34 .
# getfacl /web
getfacl: Removing leading '/' from absolute path names
# file: web
# owner: root
# group: root
user::rwx
group::r-x
group:webdev:rwx
mask::rwx
other::r-x
So, the moment I allow the group webdev
write permissions on the folder, ls -ld shows that my folder is now writable for group root
. However, this is contradicted by the output of getfacl /web
, where, group still has the (correct) permissions r-x
. So, what's going on?