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.

Maximum user name limit

Discussion in 'General Discussion' started by johnchan, May 9, 2005.

  1. johnchan

    johnchan Active Member

    Joined:
    Jun 29, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    The WHM limits usernames to 8 characters, even though Linux's limit at the worst is about 15 chars.

    Why does it limit it to such a short and crippled length? We are trying to migrate some other servers to Cpanel, but because of the username length, there are doubled up account names.

    Yes, we know there are work arounds like modifying the WHM scripts, but what will break if we do that? Not worth the risk... rather know why Cpanel limits to only 8 chars in the first place :confused: :confused: :confused:
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    One reason is because when sql databases are created, they have the username appended like username_dbname and they are limited to 16 characters total. 8 character usernames leave 7 for the database names.
     
  3. Lavanya S

    Lavanya S Registered

    Joined:
    May 10, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Is there any way by which this 16 character limit can be raised? How complicated is it? What all can get afected due to this.

    Thanks.
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You can always change the part that says:

    Code:
    if ($ENV{'LONGUSERS'} ne "1") {
    	if (length($user) > 8) { deaderror "Sorry that username is too long. MAX is 8 letters"; }
    }
    
    in the wwwacct script.
     
Loading...

Share This Page