Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    36

    Angry WHM username max length

    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. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

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

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    36

    Thumbs up

    big tks - will try later

    rgds,
    robby

  4. #4
    Member
    Join Date
    Nov 2003
    Posts
    36

    Default

    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. #5
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    That's where you want my watchwwwacct script. It's in this thread.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  6. #6
    Member
    Join Date
    Nov 2003
    Posts
    36

    Talking

    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
    Last edited by gemininetcom; 12-17-2003 at 06:53 AM.

  7. #7
    GOT
    GOT is offline
    Get Proactive! GOT's Avatar
    Join Date
    Apr 2003
    Posts
    902

    Default

    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.
    Proactive Server Monitoring and Management
    http://got-management.com

  8. #8
    Member
    Join Date
    Nov 2003
    Posts
    36

    Thumbs up

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

Similar Threads & Tags
Similar threads

  1. Increase max length of username to more than 8 chars
    By baritoneuk in forum Feature Requests for cPanel/WHM
    Replies: 17
    Last Post: 05-01-2012, 06:57 AM
  2. Max username length = 8 chars?
    By bjg in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-23-2004, 03:11 PM
  3. username length
    By newbiesite in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-09-2003, 04:39 PM
  4. Maximum Username Length
    By Taoron in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-24-2003, 08:51 PM
  5. what is the max length for the domain password?
    By thomor25 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-16-2003, 09:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube