Fixing Home Directory Permissions
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'
-
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. 0
Please sign in to leave a comment.
Comments
1 comment