Guest User

Untitled

a guest
Mar 18th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. sudo chown -R root:root /etc/nginx
  4. sudo chmod -R 0750 /etc/nginx
  5. sudo setfacl -Rbk -m g:hugo:rwx /etc/nginx
  6. sudo setfacl -R --mask -m g:www-data:rx /etc/nginx
  7.  
  8. $ ls -al /etc/nginx
  9. total 24
  10. drwxrwx---+ 5 root root 4096 Mar 18 17:07 .
  11.  
  12. $ getfacl /etc/nginx
  13. getfacl: Removing leading '/' from absolute path names
  14. # file: etc/nginx
  15. # owner: root
  16. # group: root
  17. user::rwx
  18. group::r-x
  19. group:www-data:r-x
  20. group:hugo:rwx
  21. mask::rwx
  22. other::---
Add Comment
Please, Sign In to add comment