- Apache (9)
- DNS / BIND (2)
- General Linux (7)
- Mail (8)
- Postfix (1)
- Qmail (4)
- Sendmail (3)
- MySQL (7)
- News (1)
- Other (2)
- Perl (1)
- PHP (5)
- Plesk (13)
- Redhat Linux (8)
- Ruby (1)
- Scripts (4)
- Security (4)
- iptables (2)
TopicNavigationUser login |
Plesk ACL script#!/bin/bash # for each domain directory for i in `ls /home/httpd/vhosts|grep '\.'` do # get the username for the directory user=`ls -ld /home/httpd/vhosts/$i/httpdocs|awk {'print $3'}` # set up the acls echo "Setting file acls for $user on $i/httpdocs" setfacl -m u:$user:rwx -R /home/httpd/vhosts/$i/httpdocs setfacl -d -m u:$user:rwx -R /home/httpd/vhosts/$i/httpdocs echo "Setting file acls for $user on $i/httpsdocs" setfacl -m u:$user:rwx -R /home/httpd/vhosts/$i/httpsdocs setfacl -d -m u:$user:rwx -R /home/httpd/vhosts/$i/httpsdocs # profit done For more info see http://transcendlinux.com/resolving-issues-with-content-created-by-apache-php |
Linux JournalSlashdot |