###This command fix all folder permission
- find /home/*/public_html -type d -exec chmod 755 {} ;
- find /home//public_html -name '.php' -o -name '.php[345]' -o -name '.phtml'| xargs chmod -v 644
- #!/bin/bash
- cd /var/cpanel/users
- for user in *
- do
- chown -R $user.$user /home/$user/public_html/*