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.

Unable to add the user xxxx

Discussion in 'General Discussion' started by ramakant, Oct 20, 2005.

  1. ramakant

    ramakant Member

    Joined:
    Oct 5, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.

    +===================================+
    | New Account Info |
    +===================================+
    | Domain: xxxx.com
    | Ip: xxx.xxx.xxx.xxc (y)
    | HasCgi: y
    | UserName: check
    | PassWord: default
    | CpanelMod: x
    | HomeRoot: /home
    | Quota: 100 Meg
    | NameServer1: ns1.xxxxx.com
    | NameServer2: ns2.xxxxxx.com
    | NameServer3:
    | NameServer4:
    | Contact Email:
    +===================================+

    Unable to add the user jazzcom

    got above error

    Account Creation Complete!!!


    even upgrade wont help
    also tried for gpconv and pwconv
     
  2. WilliamE

    WilliamE Well-Known Member

    Joined:
    May 14, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Running into the same problem today, trying to restore a backup of an account that no longer exists on the server. WHM 10.8.0 cPanel 10.8.1-R4.

    *edit*
    Further digging in log files is showing:
    unable to open shadow group file

    error. Any ideas on what would cause that?

    *edit*
    Solved by running grpconv :D
     
    #2 WilliamE, Oct 26, 2005
    Last edited: Oct 26, 2005
  3. Gnomercy

    Gnomercy Well-Known Member
    PartnerNOC

    Joined:
    Sep 4, 2002
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Running into the same problem here adding an account that has NEVER existed on the server. This is a dedicated server for a customer that previously had one domain on the box, now wants to add a second and is getting this error during account creation.

    I've checked /var/cpanel/users to make sure that the user wasn't listed there, but really didn't expect to find it. The account creation did put the username in /etc/group, but removing it from there and reattempting the account creation generates the same results.

    I've got a ticket in with Cpanel about it... will respond here when I get a resolution to the issue.
     
  4. Gnomercy

    Gnomercy Well-Known Member
    PartnerNOC

    Joined:
    Sep 4, 2002
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Problem for me was a lock file on /etc/passwd. Cpanel support removed the lock file and operations resumed as normal.
     
  5. ramakant

    ramakant Member

    Joined:
    Oct 5, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I am sitll not able to create domain in whm please advise.
     
  6. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Paste the error you get here so that others will be able to help you..
     
  7. kerriritter

    kerriritter Active Member

    Joined:
    Oct 25, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Same problem, this worked

    I had the same problem - error when creating a new account on one of my servers Stable Build 10.8.1 - S31.

    I had been waiting for the other person to get a response from Cpanel. But i tried this and it worked.

    I just deleted some old domains/users (no longer in use) from /var/cpanel/users and saved the file.
    And deleted old info also from /etc/group and /etc/passwd.

    Maybe there was a lock somewhere and just an edit and save fixed...?
     
  8. Gnomercy

    Gnomercy Well-Known Member
    PartnerNOC

    Joined:
    Sep 4, 2002
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    That's what cpanel told me... lock file on /etc/passwd.
     
  9. jondolar

    jondolar Well-Known Member

    Joined:
    Feb 15, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    similar problem

    I had a similar problem. There was a lock file on group and shadow (/etc/group.lock and /etc/gshadow.lock). I removed both of those (they were a day old) and ran grpconv and now everything is working fine.
     
  10. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    I have just got this error on the latest release (WHM 10.8.0 cPanel 10.8.1-R113; Fedora i686 - WHM X v3.1.0 ). Without any error message... Just:

    WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.

    +===================================+
    | New Account Info |
    +===================================+
    | Domain: antontest.com
    | Ip: xx.xx.xx.xx (n)
    | HasCgi: y
    | UserName: antontes
    | PassWord: ollalla
    | CpanelMod: x
    | HomeRoot: /home
    | Quota: 0 Meg
    | NameServer1: xxx
    | NameServer2: xxx
    | NameServer3:
    | NameServer4:
    | Contact Email:
    +===================================+
    Unable to add the user antontes

    Does anyone know the reason? I have checked for lock files in /etc.. .Nothing there except .pwd.lock.

    Anton.
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Check the error log in /usr/local/cpanel/logs/error_log
     
  12. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    well...

    groupadd: unable to open shadow group file
    useradd: unknown group superhos
    superhos does not exist, so the password cannot be changed! at /scripts/realchpass line 28

    Here is what I have in /etc, regarding shadows...

    -rw------- 1 root root 3707737 Jan 23 23:48 gshadow
    -rw------- 1 root root 3707724 Jan 23 22:44 gshadow-
    -rw------- 1 root root 27640 Jan 23 22:45 shadow
    -rw------- 1 root root 27578 Jan 23 18:09 shadow-
    -r-------- 1 root root 152680 Jan 23 18:15 shadow,v
    -rw------- 1 root root 60 Dec 28 2004 wwwacct.conf.shadow

    Does any file have wrong permission?

    Anton
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    They're the correct file permissions. It would be worth checking there are no attributes set on /etc/gshadow:

    lsattr /etc/gshadow

    Other than that idea, you may need to log a ticket with cPanel through your license provider.
     
  14. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Support team from CPANEL said that group shadow file was corrupted. They backed it up and rebuilt it using grpconv. They have also upgraded perl and all its modules. Now everything is working fine. :)
     
  15. ebinfo

    ebinfo Active Member

    Joined:
    Oct 5, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    i have similar issue in the fact that i cannot create new users, but my case is a little trickier. i looked in the /etc folder and there was no lock files for the group and passwd and shadow and so forth

    i then tried to do a grpconv.

    it then moaned saying it cannot open the group file.

    i then go into /etc and perform pico.

    and the file open just fine.

    now i am scratching my head
     
    #15 ebinfo, Oct 11, 2006
    Last edited: Oct 11, 2006
Loading...

Share This Page