Linuxcat.org

Full Version: Reset file and folder permissions cPanel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In order to reset a cPanel account's file and folder permissions in public_html via SSH, first cd into the public_html directory:

Quote:cd /home/account/public_html

then reset the directories within that folder to 755:

Quote:find . -type d -exec chmod 755 {} \;

then reset the files within that folder to 644

Quote:find . -type f -exec chmod 644 {} \;
Reference URL's