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

cPanel Newbie Guide

This guide assumes you already have Cpanel installed......this is meant to be a breif overview of...

DNS Lookup

Every computer which accesses the internet or is connected to a network uses ports to...

I got a Spam Complaint from Nexus or another SPAM reporting website, what do I do?

Once you receive a mail about a customers account being used to sending out spam, you should...

Permissions of home directory on cPanel servers

The correct permissions for /home on cPanel servers is 711   You can reset it with the...