The EasyApache FileProtect option improves the security of each user's
public_html directory. In EasyApache 4, the system enables this option by default.
Use this option to protect each cPanel account user's
public_html directory and each addon domain's document root directory so that only Apache and the user may view its contents.
When you enable this option, EasyApache performs the following actions:
/usr/local/cpanel/scripts/enablefileprotectscript, which sets more secure permissions for each user's
Sets the user's
/home/username/ directory to
When you disable this option, EasyApache sets this directory to
Sets all document root directories' GroupID to the nobody user and
When you disable this option, EasyApache sets the GroupID to the
This option does not possess any requirements.
You can enable or disable the FileProtect option with the Enable File Protect option in the Security section of WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).
This option defaults to enabled.
To enable the FileProtect option, run the following script:
To disable the FileProtect option, run the following script:
For more information about these scripts, run these scripts with the