Skip to content

Super simple script to fix cPanel permissions

A script designed to automatically fix and correct permissions and ownership settings on files and directories belonging to cPanel accounts. This utility ensures that all files and folders are assigned the proper permission values and ownership attributes, helping to resolve common issues that can arise from incorrect configurations, manual edits, or software installations that may have inadvertently altered the default permission structure expected by cPanel.

wget https://raw.githubusercontent.com/PeachFlame/cPanel-fixperms/master/fixperms.sh
chmod +x fixperms.sh

Then, run it (with ROOT permissions) while using the ‘a’ flag to specify a particular cPanel user:

sudo sh ./fixperms.sh -a USER-NAME

Pass in -v if you want verbosity.

Ref: https://github.com/PeachFlame/cPanel-fixperms

Leave a comment