Question
Why do the permissions on my public_html folder keep getting reverted after cPanel updates?
Answer
This is caused by updates to the EA4 packages on the server. When updates to EA4 are made, permissions and ownership for the document roots for sites on the server will be changed according to the File Protect option in Tweak Settings in WHM:
If File Protect is enabled:
All sites' document root directories will be set with GroupID nobody
and 0750
permissions.
If File Protect is disabled:
All sites' document root directories will be set to 0755
permissions.
Please note that disabling File Protect does not prevent file permissions from being changed.
More information about File Protect may be found in our documentation linked below.
https://docs.cpanel.net/ea4/apache/the-easyapache-4-fileprotect-option/
Additional articles regarding File Protect: