Results 1 to 10 of 10

Thread: Length of the username field

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    Lightbulb Length of the username field

    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.

  2. #2
    Registered Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Registered Member
    Join Date
    May 2004
    Location
    United Kindom
    Posts
    136

    Default

    I think, in the next few releases there should be a configuration on how long the username can be just a thought.

  4. #4
    Registered Member Nahoo's Avatar
    Join Date
    Oct 2004
    Posts
    11

    Default

    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

  5. #5
    Registered Member Nahoo's Avatar
    Join Date
    Oct 2004
    Posts
    11

    Default Search for DOLO

    Found the reference...

    pico /usr/local/cpanel/whostmgr/bin/whostmgr2
    Ctrl+W Search for "dolo"
    Change 8 to 16
    Press Del at the end of the line
    Ctrl+O to save
    In WHM, test with a new account
    Ctrl+X to exit


  6. #6
    Registered User
    Join Date
    Nov 2003
    Location
    LinkManager.info
    Posts
    2

    Default

    Quote Originally Posted by AlphaWebspace
    I think, in the next few releases there should be a configuration on how long the username can be just a thought.
    That feature would be really nice to have on the future releases

  7. #7
    Registered Member
    Join Date
    Sep 2004
    Posts
    533

    Default

    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.

  8. #8
    Registered Member
    Join Date
    Jun 2004
    Posts
    26

    Default

    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...



  9. #9
    Registered Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,190
    cPanel/WHM Access Level

    Root Administrator

    Default

    yep; i have also heard of the 8 letter mystery in linux usernames.

  10. #10
    Registered Member
    Join Date
    Sep 2004
    Posts
    533

    Default

    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!

Similar Threads

  1. cP Addons - Username length
    By Elite-Hosts in forum cPanel Developers
    Replies: 1
    Last Post: 06-08-2006, 05:34 PM
  2. Username length changed?
    By Tos in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 04-22-2004, 11:07 PM
  3. Max username length = 8 chars?
    By bjg in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 03-23-2004, 03:11 PM
  4. username length
    By newbiesite in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-09-2003, 04:39 PM
  5. Maximum Username Length
    By Taoron in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 04-24-2003, 08:51 PM
bargain