username length limited to 16 characters

Discussion in 'FreeNAS 4 N00bs' started by rcrh, Apr 30, 2012.

  1. rcrh New Member

    Member Since:
    Apr 1, 2012
    Message Count:
    15
    Likes Received:
    0
    Trophy Points:
    0
    rcrh, Apr 30, 2012

    Is there something special that has to be done to create user names longer then 16 characters? The documentation wiki says they can be up to 30 characters?
  2. peterh New Member

    Member Since:
    Oct 19, 2011
    Message Count:
    297
    Likes Received:
    1
    Trophy Points:
    0
    peterh, May 3, 2012

    Any more then 8 characters will risk multi-environment interoperability. 16 characters is usually interoperable but above that will bite you when you least want it.

    Use shorter names ( and the users will thank you )
  3. rcrh New Member

    Member Since:
    Apr 1, 2012
    Message Count:
    15
    Likes Received:
    0
    Trophy Points:
    0
    rcrh, May 3, 2012

    If only our parents knew this when they named us. Shame on them for not thinking about interoperability. ;-)

    But seriously, the manual says usernames can be 30 characters.
  4. James FreeNAS Core Team

    Member Since:
    May 24, 2011
    Message Count:
    298
    Likes Received:
    21
    Trophy Points:
    18
    Occupation:
    iXsystems, Inc.
    Location:
    San Jose, CA
    Home page:
    James, May 3, 2012

    It looks like it was 30, then changed back to 16 with this commit: http://support.freenas.org/changeset/6845/freenas. I'll update the docs accordingly. The 16 limit is to satisfy a legacy FreeBSD API, cuserid(3). pw(1) uses this limit for compatibility reasons.

    Thanks for bringing this up!
  5. James FreeNAS Core Team

    Member Since:
    May 24, 2011
    Message Count:
    298
    Likes Received:
    21
    Trophy Points:
    18
    Occupation:
    iXsystems, Inc.
    Location:
    San Jose, CA
    Home page:
    James, May 4, 2012

  6. peterh New Member

    Member Since:
    Oct 19, 2011
    Message Count:
    297
    Likes Received:
    1
    Trophy Points:
    0
    peterh, May 5, 2012

    user-id on a computer system is not the same as human names.
    Users likes short and "nicksnames", we also have no control over how many "hohn smith" is on salary list,
    but if each "john smith" is given the opportunity to choose his user-id then everyone is happy.

Share This Page