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.

Changing Chown User/Group

Discussion in 'General Discussion' started by h0tmailz, Jan 10, 2009.

  1. h0tmailz

    h0tmailz Member

    Joined:
    Dec 5, 2008
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Basically, I'm tired of CPanel chowning all my public_html dirs to user:nobody and causing LiteSpeed to do 404's how do I change the group to my httpd user group? This happens everytime CPanel does an update. Also, how do I get CPanel to make those the default permissions on account creation?
     
  2. devGOD

    devGOD Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    did you figure out how to do this, i'm experiencing the same problem when I manually change the usergroups Cpanel resets them after an update
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    At this time cPanel/WHM does not support LiteSpeed. However, if you need tasks to be performed after a cPanel update, just create a shell script /scripts/postupcp to do what you need to do after an update.

    As for tasks to be done after an account is created, just create /scripts/postwwwacct - there is documentation on the parameters passed to this script at: http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/ScriptHooks#scripts_postwwwacct
     
  4. devGOD

    devGOD Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    is there a way to repair group and users for a site?
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    By "repair" do you mean what is done during a cPanel update where ownerships are repaired to be user:nobody? Or do you mean doing your own chown'ing etc?
     
  6. devGOD

    devGOD Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    i mean by having cpanel scan all sites to make sure they have the correct group settings
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    To further clarify: correct group settings for Apache or for LiteSpeed?
     
  8. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    Hello,

    You really have 2 options since only Apache is supported directly in cPanel.

    1) change the user/group of that an alternative web server is running as to 'nobody'

    or

    2) contact LiteSpeed since they claim to fully integrate with cPanel and see how they are able to make it all work seamlessly

    Past that any "fix" script for unsupported configurations would be guessing at what you want and we all know guesses are wrong 51% of the time :)
     
  9. devGOD

    devGOD Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    i'm using Apache... i went ahead and recreated the account in WHM since I was having user/grp issues. all is fine now.
     
  10. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    As part of /scripts/upcp (the cPanel update script), the permissions for ~/public_html are automatically corrected for compatibility with Apache for all users on the system where ~ indicates the user's home directory.
     
Loading...

Share This Page