he correct permissions for files on cPanel servers is 644 and folders is 755.
You can fix the permissions of all accounts on a cPanel server by logging in as root (via SSH) and executing the following commands.
find /home/*/public_html/* -type f -exec chmod 644 {} \;
find /home/*/public_html/* -type d -exec chmod 755 {} \;
To fix the permissions of an individual account, replace * after /home with the accounts username. e.g. for a user with a username USER123 the correct commands would be
find /home/USER123/public_html/* -type f -exec chmod 644 {} \;
find /home/USER123/public_html/* -type d -exec chmod 755 {} \;
- 0 Users Found This Useful