Fixing user folder permissions on cPanel Servers

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
Was this answer helpful?

Related Articles

Download/Restore a home backup

You can use the Backup Menu to restore a Home, MySQL, filter, or alias backup. To do this, you...

Secure FTP, SFTP and FTPS

Secure FTP, SFTP and FTPS FTP over SSH is not SFTP and is not supported.SFTP is SSH FTPSFTP is...

How to check the logs FTP client?

You can check FTP logs for different client using below methods It keeps track of each FTP...