Menu

long usernames

Help
2003-09-27
2004-03-20
  • Wouter de Jong

    Wouter de Jong - 2003-09-27

    Hiya,

    For some reasons I'd like usernames to be 'username@domain.tld' ...

    This works ok for a few things, but when the username becomes too long, a few programs don't like it. Dunno if it is OS specific (Using FreeBSD 5.1) or some special routine, but it stinks

    NOT working:
    su - wouter2@de-jong.tld
    su: username too long

    DOES work:
    su - test@de-jong.tld
    [test@de-jong.tld@s001:/test@de-jong.tld]$

    Sep 27 11:49:49 s001 sshd[10721]: Accepted password for wouter2@de-jong.tld from 127.0.0.1 port 53626 ssh2
    Sep 27 11:49:49 s001 login: login from localhost on ttyp4 as wouter2@de-jong.tld
    Sep 27 11:49:49 s001 login: setlogin(wouter2@de-jong.tld): Invalid argument - exiting
    Sep 27 11:49:49 s001 kernel: Sep 27 11:49:49 s001 login: setlogin(wouter2@de-jong.tld): Invalid argument - exiting

    Anyone knows what to do about this??
    I mean, having lots of users in sql is very useful, but having them with their domain in it is almost perfect (for me :)))

     
    • Wouter de Jong

      Wouter de Jong - 2003-09-28

      FreeBSD doesn't support usernames longer then 16 chars ... too bad:(

      Now I'll have to setup stupid usernames like usr000987343

      urf:(

       
    • Ben Goodwin

      Ben Goodwin - 2003-10-07

      I do recall the 16 character limit.. and I meant to check on this but haven't had a chance.. You may be able to edit that value in a *.h somewhere and do a buildworld/installworld to get around that limit, however...

       
    • Nick Twaddell

      Nick Twaddell - 2004-03-20

      edit /usr/src/sys/sys/param.h

      #define MAXLOGNAME      17              /* max login name length (incl. NUL) */

      buildworld/installworld and your good to go :)

       

Log in to post a comment.