Reset Permission สำหรับ Directadmin คำสั่งเดียวจบเนียนๆ

Reset Permisson
cd /usr/local/directadmin/scripts/
./set_permissions.sh all
cd /usr/local/directadmin/data/users && for i in ; do { chown -R $i:$i /home/$i/domains/*/*;}; done;
cd /usr/local/directadmin/data/users && for i in ls; do { chown -R $i:$i /home/$i/.bash*;}; done;
cd /usr/local/directadmin/data/users && for i in ls; do { chown -R $i:$i /home/$i/.sha*;}; done;
cd /usr/local/directadmin/data/users && for i in ls; do { chown -R $i:$i /home/$i/.mozi*;}; done;
cd /usr/local/directadmin/data/users && for i in ls; do { chown -R $i:$i /home/$i/public_html;}; done;
cd /usr/local/directadmin/data/users && for i in ls; do { chown -R $i:mail /home/$i/Maildir;}; done;
cd /usr/local/directadmin/data/users && for i in ls; do { chown -R $i:apache /home/$i/.php;}; done;
cd /usr/local/directadmin/data/users && for i in ls; do { chown -R $i:$i /home/$i/domains/*/.htpass*;}; done;