WorkinOnIt

Well-Known Member
Aug 3, 2016
212
30
28
UK
cPanel Access Level
Root Administrator
I know this is an old thread - but will this command still work?

"for CPAccess in `ls -A /var/cpanel/users`; do chown -R $CPAccess:nobody /home/$CPAccess/public_html; done"

On my test system I get the following:

chown: invalid user: `system:nobody'
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,224
463
Hello,

That command will work, as the warning output shouldn't stop it from running on the existing accounts (system is user under /var/cpanel/users but isn't an actual cPanel account).

However, group ownership for the public_html directory isn't configured as "nobody" in all cases, as it depends on factors such as if Mod_Ruid2 is enabled. Could you let us know what's leading you to use this command?

Thank you.