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.

WHM username max length

Discussion in 'General Discussion' started by gemininetcom, Dec 10, 2003.

  1. gemininetcom

    gemininetcom Active Member

    Joined:
    Nov 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Running WHM 8.5.1 and having problems with account creation and max length of username.

    WHM manual states "username field will automatically populate with first 8 characters of domainname, but you can change this to whatever you want"

    Found that username still can have max only 8 characters and by default we use username same as domainname less gtld, i.e. cpanel7890123456.net username: cpanel7890123456

    Anyone with more info on tis subject ??

    tks,
    robby
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Take a look at your /scripts/wwwacct file around line 385 and you will see

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

    gemininetcom Active Member

    Joined:
    Nov 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    big tks - will try later

    rgds,
    robby
     
  4. gemininetcom

    gemininetcom Active Member

    Joined:
    Nov 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    squirrel,

    followed ur advise and it works OK:OK

    only problems is that every day i have to redo the edit as whm updates automatically and my edit of /scripts/wwwacct is every time overwritten

    upgrade preferences are:
    cpanel/whm : automatic/stable
    darkORB : automatic
    security : automatic

    any smart idea how to avoid also upgrade every day of /scripts/wwwacct ??

    rgds,
    robby
    :)
     
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    That's where you want my watchwwwacct script. It's in this thread.
     
  6. gemininetcom

    gemininetcom Active Member

    Joined:
    Nov 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    squirrel:

    like to get out also the restriction on username with dash "-" and I tried to comment out next line, but it did not work:

    QUOTE
    # if ($user =~ /-/) { deaderror "Sorry usernames cannot contain a dash."; } # modif 20031217 RF
    UNQUOTE

    on top of it: systems returns again error that username too long although max length has been put to >20

    any clue?

    just one more topic: actually we also need to create a username starting with a digit, so we need to make one more change to get out "allowstupidstuff"

    tks,
    robby:confused:
     
    #6 gemininetcom, Dec 17, 2003
    Last edited: Dec 17, 2003
  7. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    Due to some MySQL irregularities, I really do not recomend that you allow the - in usernames. It is way more trouble than it is worth.
     
  8. gemininetcom

    gemininetcom Active Member

    Joined:
    Nov 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    ::GotHosting, tks for advise. will follow it for our new accounts, but have still old accounts where username name is same as domain, i.e. abcd-xyz.com and username = abc-xyz

    username is then used in all kinds of modules, so it is annoying now to have to modif all those usernames and inform customers to have to change all their logins.

    tks and CU,
    Robby Fokkens
     
Loading...

Share This Page