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!

Unable to add user (cpanel is using wrong directory!)

Discussion in 'General Discussion' started by crashish, Apr 15, 2008.

  1. crashish

    crashish Registered

    May 18, 2006
    Likes Received:
    Trophy Points:
    I have been having a problem lately with cpanel trying to add users to the wrong directory, even though I have double and triple checked the configuration, and verified that it is set to create user accounts in /home/cpusers.

    When I attempted to create accounts through WHM, it gave me a very vague error message, saying something simple like "Couldn't create user account". I dug further, into the cpanel error logs and found that cpanel was attempting to create the user's home directory in a location other than /home/cpusers, with this error message: "Adding User...useradd: cannot create directory /other/directory/username". It may or may not be relevant, but the /other/directory is a network-mounted share I use for backing up system files.

    How it came to be that cpanel is trying to create user accounts there is boggling my mind, though, and any insight into this would be greatly appreciated!

    (I have found a workaround, by the way: unmount the network share, add user, remount. I haven't attempted it through WHM, but it works with /scripts/wwwacct!)

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