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 allowed chars

Discussion in 'General Discussion' started by critical_error, Jan 30, 2012.

  1. critical_error

    critical_error Registered

    Joined:
    Jan 30, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi,

    I want to create a username based on a user's domain on my own and couldn't find out what the exact rules for a cPanel username are.
    I know it can be max. 8 chars long, but which characters are not allowed and will be ignored by cpanel?

    Thank you!
     
  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
    The short answer is: cPanel usernames are also the usernames of system users, so if it's a valid system username then it would very likely be a valid cPanel username. There are some notable exceptions like "root" and "test" but they are exceptionally rare. Our APIs will return if an account creation failed and why, if you use the APIs.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The rules that I know for cPanel usernames are the following:

    - Only alphanumeric characters are accepted (space, dash, underscore, etc. are not allowed)
    - Must be 1-8 characters long (other than account transfers from non-cPanel machines that support longer than 8 character usernames)
    - Cannot have the password as part of the username
    - Cannot start with test
    - Cannot start with a digit
    - Cannot use an existing user on the system such as root (reserved usernames)
     
Loading...

Share This Page