Matthew Nigro

Registered
Jul 14, 2018
1
0
0
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!
 
Last edited by a moderator:

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
run

/scripts/removeacct username --force

then try and add your account
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

garconcn

Well-Known Member
Oct 29, 2009
172
18
68
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.
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.
 

garconcn

Well-Known Member
Oct 29, 2009
172
18
68
run

/scripts/removeacct --user=username --force

then try and add your account
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: ''.)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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: ''.)
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.