The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Length of the username field

Discussion in 'General Discussion' started by x86i-365ink, Jul 12, 2004.

  1. x86i-365ink

    x86i-365ink Registered

    Joined:
    Jul 12, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    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.
     
  3. AlphaWebspace

    AlphaWebspace Well-Known Member

    Joined:
    May 1, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kindom
    I think, in the next few releases there should be a configuration on how long the username can be just a thought.
     
  4. Nahoo

    Nahoo Member

    Joined:
    Oct 7, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    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. Nahoo

    Nahoo Member

    Joined:
    Oct 7, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    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

    :cool:
     
  6. webscorpion

    webscorpion Registered

    Joined:
    Nov 29, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    LinkManager.info
    That feature would be really nice to have on the future releases :)
     
  7. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    532
    Likes Received:
    0
    Trophy Points:
    16
    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. Pixelation

    Pixelation Active Member

    Joined:
    Jun 3, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    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:
     
  9. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    yep; i have also heard of the 8 letter mystery in linux usernames.
     
  10. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    532
    Likes Received:
    0
    Trophy Points:
    16
    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!
     
Loading...

Share This Page