x86i-365ink

Registered
Jul 12, 2004
1
0
151
I was wondering if there is a way to extend the username beyond 8 characters. We currently have to shorten the domain names, due to the limit, and would like to use the entire domain name for their folder, as it would be easier for server side scripting. Is there an addon or tweak we can use to extend this to maybe 20 characters or more?

Thanks in advance.
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
In the /scripts/wwwacct script, around line 392, you will see:

if ($ENV{'LONGUSERS'} ne "1") {
if (length($user) > 8) { deaderror "Sorry that username is too long. MAX is 8 letters"; }
}

You could modify that. If you do, you will need to either chattr the script or use my watchwwwacct script.

Since it has the line:
if ($ENV{'LONGUSERS'} ne "1") {
there must be a setting somewhere to allow long names, but I'm not sure where it is. Haven't had the need to look yet.
 

Nahoo

Member
Oct 7, 2004
24
1
153
London, UK
cPanel Access Level
Root Administrator
Twitter
I edited the cpanel config file (in /etc) to allow long usernames, but this doesn't have an effect on wwwacct.

Does anyone know where the dologon() javascript function is held? I want to remove the auto-abbreviation of the usernames when a domain name has been entered.

Thanks!

Nahoo
 

dezignguy

Well-Known Member
Sep 26, 2004
533
0
166
I would agree... it was really annoying when I moved off my old server and onto a new server with CPanel on it, and I had to shorten all the usernames, and edit all the mysql login names and the paths for all customers.
 

Pixelation

Active Member
Jun 3, 2004
26
0
151
I'm not 100% sure about this so correct me if I'm wrong, but when working on Linux it's recommended to use usernames that are shorter than 8 characters. For the simple following reason: Linux only recognises the first 8 chars. So for example, if your you have a username "pixelation" and "pixelationweb" Linux will think those are one and the same, because the first 8 chars "pixelati" are the same...


:confused:
 

dezignguy

Well-Known Member
Sep 26, 2004
533
0
166
hmm... well I guess that would explain it... since nothing else really does better. Wasn't expecting that though with linux... since it seems to handle everything else longer. Passwords too, fortunately!