find /home/*/public_html/ -type d -perm 0777 > /root/arun_777d.txt –> TO FIND THE FOLDERS having 777 permission
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
OR
for i in `cat /etc/trueuserdomains| awk {‘print $2′}`; do find /home/$i/public_html -type f -exec chmod 644 {} \;; find /home/$i/public_html -type d -exec chmod 755 {} \;; done
« Prev:APACHE CONF FILE IN WHM SERVER Command to create a folder and then another folder inside that.:Next »