...
Code Block |
---|
|
mkdir web
#next set the permissions
chmod u+rwX,g+r-w+X,o-rw+Xrwx web
#now set www-data for the acl
setfacl -Rm g:www-data:rX ./web/
setfacl -Rm g:staff:rX ./web/ |
...
Code Block |
---|
|
getfacl --access ./web/ | sudo setfacl -d -RM - ./web/
chmod o-rw+X web |
getfacl --access = Â retrieves the ACL the permissions applied to the directory only (default permissions are not returned). The details are then piped to setfacl and the parameters read,
...
Code Block |
---|
|
chmod o-rwxrw+X php
#next apply this change to default
getfacl --access ./php/ | sudo setfacl -d -RM - ./php/
#check the permissions
getfacl php
# file: php
# owner: serveradmin
# group: staff
user::rwx
group::r-x
group:www-data:r-x
group:staff:r-x
mask::r-x
other::---x
default:user::rwx
default:group::r-x
default:group:www-data:r-x
default:group:staff:r-x
default:mask::r-x
default:other::--- |
...