WHM automatically uses 1st 8 chars to create username - can that be changed?

r1ng00

Registered
Jun 20, 2007
2
0
51
WHM uses the first 8 chars of the domain name to auto create a new account however if have similar domain names you'll run into duplicate names and you can have issues.

My question is:

Is there a way to CHANGE the DEFAULT 8 char's to be random or some other way to change how WHM uses auto naming for accounts?
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
You can set the username to whatever you wish when you create an account
and it is not required that you go with the default generated username.

Also, if the default username derived from the domain name already exists
in the system, Cpanel will abort the attempt to create the new account and
you will be forced to select a different username anyway.
 

r1ng00

Registered
Jun 20, 2007
2
0
51
You can set the username to whatever you wish when you create an account
and it is not required that you go with the default generated username.

Also, if the default username derived from the domain name already exists
in the system, Cpanel will abort the attempt to create the new account and
you will be forced to select a different username anyway.
Yes, I realize that and thats why I want to know if there is a way to set WHM to Randomize the username instead of use the first 8 Chars. My issue really revolves around the security of using what everyone already knows as the username for sites. The hacking is halfway done if you know the domain name.

SO im looking to "randomize" the username automatically. Is that possible?
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
You're making a good point re the security of the default. What you're really asking is, can the default for the WHM user interface be changed. My understanding is that the default itself (which is really only an interactive default) can't be changed; however you can always retype the username field, perhaps just replacing the last two characters with digits which would make it sufficiently random.

However, if an account is created through the API, rather than interactively, there is no default at all.

It would probably be nice if cpanel did allow the default to be changed, because as you say, it does make it easier to derive the username.
 

expedio

Active Member
Jun 30, 2007
36
0
56
If you have modernbill, you can use mod_cpanel to generate random username and passwords and create accounts.
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
I use that already, but can still only use 8 characters, which kinda sux
I think 8 characters is an old username limit in Unix. I suspect it doesn't apply to some of the newer Unixes/Linuxes now, but for portability's sake I doubt cpanel will ever change it.