mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
WordPress updates reset permissions to 775/664 instead of preserving existing permissions #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chiareu on 3/31/2026
CloudPanel version(s) affected
2.5.3
Description
On CloudPanel-managed servers, WordPress updates (core, plugins, themes) do not preserve existing file and folder permissions.
During any update operation (even when triggered from the WordPress dashboard), updated directories and files are recreated with default permissions:
This overrides previously hardened permissions, such as:
Expected behaviour:
or
Actual behaviour:
Impact:
Notes:
How to reproduce
Possible Solution
Workaround:
Using PHP auto_prepend_file to enforce:
umask(007);Suggestion:
Additional Context