The ownership keeps getting changed to user.nobody in cpanel automatically.
on debugging this issue it was found that cpanel has a new feature which was causing this
in
Home /
Server Configuration /Enable File Protect
Disabling it fixed the issue of permission changing automatically
Tweak Settings
Updating “Enable File Protect” from “On” to “Off”.
“Enable File Protect” was updated.
Processing post action for Enable File Protect:
Setting /home permissions to 0711 …
Setting permissions for users …
my247web …
… Done
“Enable File Protect” was updated.
Done.