User Tools

Site Tools


acl-script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
acl-script [2015/08/20 12:01] herwarthacl-script [2015/08/20 12:03] (current) herwarth
Line 1: Line 1:
 ======ACLs to use with changes====== ======ACLs to use with changes======
 <code - /root/setacls.sh> <code - /root/setacls.sh>
-#defaults W<wijzigingsnummer>+#<wijzigingsnummer> 
 +#defaults
 chmod -R g-s /etc/httpd chmod -R g-s /etc/httpd
 setfacl -R -b -d -m g::rwX /etc/httpd setfacl -R -b -d -m g::rwX /etc/httpd
 setfacl -R -b -d -m o::--- /etc/httpd setfacl -R -b -d -m o::--- /etc/httpd
-Set custom acls+#custom acls
 find /etc/httpd -type d -exec chmod g+s {} \; find /etc/httpd -type d -exec chmod g+s {} \;
 setfacl -R -d -m g:root:rwX,o:r-- /etc/httpd/conf setfacl -R -d -m g:root:rwX,o:r-- /etc/httpd/conf
Line 16: Line 17:
 setfacl -R -m g:domain-admins:rwX /etc/httpd/modsecurity.d/activated_rules setfacl -R -m g:domain-admins:rwX /etc/httpd/modsecurity.d/activated_rules
 </code> </code>
 +{{tag>centos}}
acl-script.1440072073.txt.gz · Last modified: by herwarth