Results 1 to 6 of 6

Thread: username length limited to 16 characters

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    15

    username length limited to 16 characters

    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. #2
    Senior Member
    Join Date
    Oct 2011
    Posts
    297
    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. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    15
    Quote Originally Posted by peterh View Post
    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 )
    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. #4
    Administrator
    Join Date
    May 2011
    Posts
    261
    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. #5
    Administrator
    Join Date
    May 2011
    Posts
    261
    To further this thread, a patch (http://freenas.svn.sourceforge.net/v...&pathrev=11388) was just added to 8.2 to raise that limit to 32 to allow for longer AD names. The suggestion to limit manually generated usernames to 8 characters is still the best practice for interoperability and backwards compatibility with some applications.

  6. #6
    Senior Member
    Join Date
    Oct 2011
    Posts
    297
    Quote Originally Posted by rcrh View Post
    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.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •