1.Script for changing all account permission to default in cPanel:
========================================================================
for x in `ls /var/cpanel/users` ; do find /home/"$x"/public_html/ -type d -exec chmod -v 755 {} \;; find /home/"$x"/public_html/ -type f -exec chmod -v 644 {} \;; chmod -v 750 /home/"$x"/public_html ; chown -vR $x:$x /home/"$x"/public_html ; chown -v $x:nobody /home/"$x"/public_html ; echo "Permission Changed For: $x " ; done
=======================================================================
Regards,
Vinod T K