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.

Incorrect HomeRoot - New Account Creation Problems

Discussion in 'General Discussion' started by atorreso, Nov 10, 2006.

  1. atorreso

    atorreso Member

    Joined:
    Jan 14, 2005
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Good Afternoon,

    After searching for several hours, I am unable to find the answers.

    Currently we have a server with two hard drives in it.
    All of a sudden all new accounts are trying to be created on this new HD.
    Inside of Main >> Server Configuration >> Basic cPanel/WHM Setup
    The Default Home Directory is correctly set to /home

    The Home Directory Prefix is home

    Yet when we try and create a new account the following errors happen.

    Copying skel files from /root/cpanel3-skel/ to /home/emeraldv/public_html/newdrive/magdal/
    Using Quota v3 Support


    Could not create /home/emeraldv/public_html/newdrive/magdal/mail/inbox: Permission denied

    Which of coarse is due to the second HD being owned by one customer, not root for the entire server.

    Current Server Builds:
    WHM 10.8.0 cPanel 10.9.0-R57
    CentOS 3.8 i686 - WHM X v3.1.0

    Thank you,

    Anthony
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Did you use WHM to setup the new drive, or did you do it manually at the command line?
     
  3. sparksupport

    sparksupport Member

    Joined:
    Apr 30, 2006
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    From the erros
    ++++++++++++++++
    Copying skel files from /root/cpanel3-skel/ to /home/emeraldv/public_html/newdrive/magdal/
    Using Quota v3 Support

    Could not create /home/emeraldv/public_html/newdrive/magdal/mail/inbox: Permission denied
    ++++++++++++++++
    I could see that the account is not creating in the actul path. The Actual path should be "/home/magdal/mail" not "/home/emeraldv/public_html/newdrive/magdal/mail/". That means the "/home/emeraldv/public_html/" path is prefixing there instead of "/home".
    Check the wwwacct.conf file and make sure the "The Default Home Directory" is set correctly there.
     
  4. atorreso

    atorreso Member

    Joined:
    Jan 14, 2005
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cpanelkenneth:
    Command line, several months ago. Mind you on this server we stopped adding accounts ourselves, but one of my resellers just did. He showed this to me.


    sparksupport:
    /etc/wwwacct.conf

    HOMEDIR /home
    HOMEMATCH home


    Any other ideas?

    Thanks,

    Anthony
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    When accounts are created, the process defaults to using the home partition with the most free space available. Depending upon how it actually checks that data, the drive being mounted under home (even though the mount is /home/emeraldv/public_html/newdrive) maybe "confusing" the process. Try umounting the drive and adding an account. If the account is successfully created under /home then that is the problem. Please let me know whether that works.

    I'll also see if I can duplicate the scenario. If so, I'll open a bug report and post the link here. Still, please let me know if unmounting the drive resolves the problem.
     
  6. atorreso

    atorreso Member

    Joined:
    Jan 14, 2005
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Kenneth,

    That was it, as soon as I unmounted the drive it worked just fine.

    Yes the HD was an odd request, but for a special customer.

    Thank you so much for the work around. However....... If he goes to add more accounts we will be in the same boat. However we have a fix.. :)

    Thank you so much,

    Anthony
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    No problem, glad it was an easy fix. Once i duplicate this and post a bug report, hopefully we can work a real fix for this into our schedule.
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page