Knowledgebase: Dedicated Servers
Fixing user folder permissions on cPanel Servers
Posted by Muslim KHAN on 26 September 2016 10:04 AM

The 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 {} \;