Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- sudo chown -R root:root /etc/nginx
- sudo chmod -R 0750 /etc/nginx
- sudo setfacl -Rbk -m g:hugo:rwx /etc/nginx
- sudo setfacl -R --mask -m g:www-data:rx /etc/nginx
- $ ls -al /etc/nginx
- total 24
- drwxrwx---+ 5 root root 4096 Mar 18 17:07 .
- $ getfacl /etc/nginx
- getfacl: Removing leading '/' from absolute path names
- # file: etc/nginx
- # owner: root
- # group: root
- user::rwx
- group::r-x
- group:www-data:r-x
- group:hugo:rwx
- mask::rwx
- other::---
Add Comment
Please, Sign In to add comment