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!

Cannot create a new account issue

Discussion in 'General Discussion' started by Matthew Nigro, Jul 14, 2018.

  1. Matthew Nigro

    Matthew Nigro Registered

    Joined:
    Jul 14, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Norcal
    cPanel Access Level:
    Root Administrator
    Hi all,

    [removed hosting provider feedback]

    Now that I got that out of the way, I'll ask my question:
    So I go into WHM and try to add a new account. I get the error that the "user is already listed in usr/local/cpanel/Whostmgr/Accounts/Create.pm"

    So I shuffle over to that directory and any way I try to access it, it says "bash: cd: usr/local/cpanel/Whostmgr/Accounts/Create.pm: No such file or directory"

    I don't know what they did when they moved me over, but I cannot find the user to delete the user. Please help?

    Thank you!
     
    #1 Matthew Nigro, Jul 14, 2018
    Last edited by a moderator: Jul 16, 2018
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,742
    Likes Received:
    78
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    run

    /scripts/removeacct username --force

    then try and add your account
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 dalem, Jul 15, 2018
    Last edited by a moderator: Jul 19, 2018
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Matthew Nigro,

    The error message doesn't mean the user is listed in the /local/cpanel/Whostmgr/Accounts/Create.pm file itself, but rather that it exists in one of the configuration files on the server.

    If you are able to login via SSH as the "root" user, check to see if that username exists in /etc/userdomains or /etc/userdatadomains with commands like this:

    Code:
    grep username /etc/userdomains
    grep username /etc/userdatadomains
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    133
    Likes Received:
    6
    Trophy Points:
    68
    I am seeing this issue too on v72. The username does not exist in /etc/userdomains or /etc/userdatadomains
    Never had this issue on older versions.
     
  5. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    133
    Likes Received:
    6
    Trophy Points:
    68
    This seems not working.

    # /scripts/removeacct --user=adxxxx --force
    Unknown option: user
    die [removeacct] Invalid username specified: ''.
    exit level [die] [pid=53384] (Invalid username specified: ''.)
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    The "--user=username" part of this command is not correct. If you were to run this command, it would look like this:

    Code:
    /scripts/removeacct username --force
    I've updated that user's post to reflect this.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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