View Full Version : username length
Helo,
can we change the minimal/maximal username character ?
regards
DirectAdmin Support
10-14-2003, 10:40 PM
Hello,
No, it's hard coded. Names must be 4-10 characters long. Mysql databases can't have a name longer than 16 characters, so a 10 character username only leaves 5 characters for a database name (username_dbname). Any longer and we'd run into troubles :)
John
John,
Is it possible to create 'aliases' on a user name, e.g. corresponding with the domainname, including tld (and if there are more domain names under one user, there would be more 'alias' names). Login in with an alias, you should go directly to this domain.
This way you keep the usernames at 10 positions and give users a nice option to go directly to their domain as well.
Leen
According to my limited understanding of databases, database names can be as long as you want if you set the database field category to accept it. The next category after 16 characters is 64 for a MySQL database, I believe.
I'd *really* *really* prefer it if I could use usernames longer than 10 characters. 10 is very limiting.
Really. If there were a way to convince you to change that, I'd be very grateful. (Heck, if I had access to my host's copy (hostpc.com - hint, hint) of the program I'd change it myself.
DirectAdmin Support
10-29-2003, 10:01 AM
Hello,
Just a correction, the databases can be up to 64 characters, but the usernames can only be 16. I meant to refer to the Usenames :)
John
But, what about aliases that can go to a e.g. 64 characters?
chuckd
10-29-2003, 09:36 PM
Argh. A 10 character username length really sucks.
It breaks about 200 of 687 users on my server. I don't really like the idea of coordinating all these users to change their usernames.
Perhaps switching to DA is more effort than it's worth.
DirectAdmin Support
10-30-2003, 01:25 PM
Hello,
The username limit can be increased. The only issue (As I've stated before) is the mysql username limit. I have to make sure that everything works in a happy balance. I am willing to increase it to 12, but that leaves only 3 characters (one for the _ ) for the database username (username_123). This might cause a few people to be upset, or it might not.. but it has to be looked at it from all angles.
John
chuckd
10-30-2003, 02:45 PM
Hmm so I guess that means the MySQL users will all have to be renamed too...
Please look at my suggestion. You can make an 'unlimited' number of login names, keeping the usernames the way they are, for all purposes.
DirectAdmin Support
10-30-2003, 03:51 PM
Hi Leen,
Thanks for the suggestion, we'll keep it in mind. What we're talking about the limits of mysql usernames, which differ from DA usernames. The thing is that mysql usernames *begin* with the DA username, to keep things organized eg: dausername_dbusername... it gets pretty long, pretty quick :)
John
thoroughfare
10-30-2003, 05:22 PM
John,
Why not make it a setting people can set during the DA install?
Then everyone will be happy. I think it's fine as 10.
Cheers,
Matt :)
chuckd
10-30-2003, 06:09 PM
I just checked out the possibility of increasing MySQL's username length. There are a handful of complaints on the mysql list but no responses... You can increase the size of the user field but then the GRANT command won't work. So looks like it'll stay at 16 characters for a while to come. Unless more people request it. It'd definitely make the transition to DA smoother for me.
DirectAdmin Support
10-30-2003, 09:59 PM
One username length setting limit, coming up. I'll limit the limit:
low: 8
high: 14
14 will leave 1 character for mysql usernames :)
The setting will be in the directadmin.conf, but won't be in the Admin Settings (not exactly something you'll be changing daily :)
John
chuckd
10-31-2003, 06:08 PM
Cool, thanks.
DirectAdmin Support
12-09-2006, 12:51 PM
For anyone curious, this is the guide to do it:
http://www.directadmin.com/features.php?id=189
The minimum length is currently 3, not 8.
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.