Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Fixing Home Directory Permissions

Discussion in 'General Discussion' started by WorkinOnIt, Nov 20, 2016.

Tags:
  1. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    153
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    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'
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,435
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice