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.

Username - Max 8 letter and no number???

Discussion in 'General Discussion' started by ko-kylling, Jul 8, 2009.

  1. ko-kylling

    ko-kylling Registered

    Joined:
    Jul 8, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello.

    I have a few questions:
    Why can't I add domains and choose a username for these which length is more than 8 letter and contains number?
    Is there a way to make this possible? Maybe not the number part, but at least the length of the username.
    If so, is this recommed and if no, why not?

    In advance, thanks :)

    Best regards
    Morten Johansen
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    cPanel users are created as standard Unix users, as such the limitations of standard unix usernames apply. Some distributions support a length over 8 characters, but allowing this will break other features such as MySQL.

    However, you should be able to use a username that contains a number as long as the username does not begin with a number.
     
  3. ko-kylling

    ko-kylling Registered

    Joined:
    Jul 8, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the quick reply :)

    I only tried with a username that started with a number, so maybe it works with numbers anyway :)

    Why will it break MySQL if I use more than 8 letter for the username?
    I know that your competitor, Plesk, allows long usernames ;)
     
  4. fmidaglia

    fmidaglia Registered

    Joined:
    Aug 27, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Same problem, 9 letters username will break the server??
    :confused:
     
  5. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    As cPanelDavidG mentioned, some distros might support more than 8 character username but it can/will certainly break some services if not the entire server. Therefore it is not recommended.

    Here are a few things to be kept in mind while choosing a username :

    A username must start with a lowercase letter.
    The length of a username should be between 3 and 8 characters.
    It can consist of lowercase letters and numbers.
     
  6. jhanger

    jhanger Registered

    Joined:
    Feb 17, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    MySQL will not break.

    This is not the case. MySQL since v. 3.23 has been able to support up to 16 characters in a username and numbers are permitted, however they are not permitted as the first letter. It also supports usernames with -'s and .'s in the names however the database names may or may not support special characters such as %, / etc....

    If anyone has solved the 8 character limit that would be great to see the work around, as MySQL does support this...

    In a growing world and 64 bit support nearly 100% available on servers as well as desktops there's no reason we should be limited to such a small number for usernames.
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Under the current system, if 16 character cPanel usernames are used, since mysql database usernames and database names begin with the username followed by _ in a cPanel/WHM environment, we have a 17 character string before the user types in their preferred name. This will create issues since MySQL only accepts 16 characters for usernames.

    We are currently working on removing the username_ requirement, but I prefer to wait until that feature is available in public builds before I comment on that further.
     
  8. kmm2908

    kmm2908 Registered

    Joined:
    Feb 25, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Are there any other limitations on a user name?
    1. 8 characters
    2. Cannot start with a number
    3. ???

    How about restricted words: cpanel, test, etc..?
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Regarding "restricted words": basically, it cannot be any existing Unix user on the system. Here's a list of commonly found Unix users on a cPanel/WHM system:

    Code:
    root
    bin
    daemon
    adm
    lp
    sync
    shutdown
    halt
    mail
    news
    uucp
    operator
    games
    gopher
    ftp
    nobody
    dbus
    mailnull
    smmsp
    nscd
    vcsa
    rpc
    sshd
    rpcuser
    nfsnobody
    pcap
    rpm
    haldaemon
    cpanel
    named
    mysql
    mailman
    cpanelhorde
    cpanelphpmyadmin
    cpanelphppgadmin
    cpanelroundcube
    avahi
    avahi-autoipd
    xfs
    mx
    postgres
    clamav
    dovecot
    munin
    
     
  10. kmm2908

    kmm2908 Registered

    Joined:
    Feb 25, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply DavidG; very comprehensive and just what I was looking for!
     
  11. baritoneuk

    baritoneuk Member

    Joined:
    Jul 6, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I'm fairly new to using cPanel and have found the username length restriction quite frustrating. It makes creating readable usernames hard and I prefer longer ones for security. For example if a client's website is called (for example) Cantabile then the best username I can get would be cantabil (one letter short).

    I do understand the issue with it being compatible with servers, but could there not be an option to enable/disable this feature for different servers? i.e. if my server can cope with longer usernames then we can enable it? Sorry if that is a silly question! If this is something that is being added, do we have a rough timescale?
     
  12. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Personally I never use the default username suggested by cPanel when creating an account. For security reasons. I like to offer my users the option of using a unique name for their login name. Provided its 8 characters of course.

    No one sees this username nor uses this username aside from the host, the system and the end user to login with.

    I do not believe there are any plans to make changing username length an option. You are free to start a thread in the Feature Requests forum and ask for it though.
     
  13. baritoneuk

    baritoneuk Member

    Joined:
    Jul 6, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your reply.

    I don't use the username suggest feature either, I was just giving one example of a perfect username being 1 letter too much.

    I don't give access to cPanel for my customers as I manage all their websites for them (and they're not that technical!) so the usernames are for my benefit. Having longer usernames would make it much easier to remember them all and make them more pleasing to the eye.

    It's a shame that there are no plans for changing the username length. Perhaps I will start a thread in the feature requests forum, but not sure if many people would share my thoughts. Only one way to find out though!

    Thanks.
     
Loading...

Share This Page