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.

Create an Account Fails

Discussion in 'General Discussion' started by youraverageboy, Feb 22, 2004.

  1. youraverageboy

    youraverageboy Registered

    Joined:
    Jan 26, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    WWWAcct 8.0 by J. Nick Koston

    [specific Info]

    User test1co added
    Changing password for test1co
    Password for test1co has been changed
    Unable to add the user test1co


    In the script wwwacct the section that is failing is this.

    if(!getpwnam($user)){
    deaderror" Unable to add user $user";
    }

    The user wasn't added previous to running this. If I am looking at this correctly it is supposed to skip over this when it gets a NULL because there is no entry to match. However, since it is erroring out...it leads me to believe it thinks the name is already created. I don't get it. If anyone has some insight on this it would be greatly appriciated.
     
  2. youraverageboy

    youraverageboy Registered

    Joined:
    Jan 26, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
  3. youraverageboy

    youraverageboy Registered

    Joined:
    Jan 26, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Rethinking this

    I still don't think it should be necessary to stop nscd to get the account to be created. Perhaps someone knows more about this than I do.
     
  4. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    I was getting :

    groupadd: Unable to open group shadow file

    in the cpanel error log

    I ran :

    grpconv to rebuild the group shadow file from group and accounts started working again.

    Hope this helps someone.
     
  5. ebinfo

    ebinfo Active Member

    Joined:
    Oct 5, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    i have a similar issue, but in my case, grpconv complains that it cannot open the group file?

    i went in there with pico and i could open it just fine so hmmm.
     
Loading...

Share This Page