Verify ownership and permissions from the top down
ls -ld /home/username /home/username/.cpanel
If any of those have root
or other user ownership instead of username
, fix it:
# Fix ownershipchown username:username/home/username
# Fix permissions (standard 711 so cPanel and FTP can enter the directory)chmod 711 /home/username
# Fix permissions of .cpanel just to be surechown -R username:username/home/username/.cpanel
chmod 700 /home/username/.cpanel