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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    113
    Likes Received:
    7
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page