How to fix cPanel Account Permissions
Fixing file and directory permission for a specific user.
find /home/*/public_html/* -type f -exec chmod 644 {} ;
find /home/*/public_html/* -type d -exec chmod 755 {} ;
find /home/*/public_html/* -type d -exec chmod 755 {} ;
we can specify user by replace * with usename
To fix the permission for all the websites.
for i in `ls /var/cpanel/users` ; do chown -R $i.$i /home/$i/public_html/* ; done