TopicNavigationUser login |
ScriptsChecking all domains on a Plesk box for reverse DNSAvailable at http://partytime.wackyfunster.com/leet/plesk_rdns_check.sh Checks every domain in /home/httpd/vhosts for forward lookup and reverse lookup, and outputs the results. Output may be more readable when piped into sort. Snapshot script for crashing boxesThis script will be updated and available at: http://partytime.wackyfunster.com/leet/snapshot.sh Plesk upgrade scripthttp://partytime.wackyfunster.com/leet/pleskpreinstall 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 |
Linux JournalSlashdot |