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 :)))
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :)))
FreeBSD doesn't support usernames longer then 16 chars ... too bad:(
Now I'll have to setup stupid usernames like usr000987343
urf:(
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...
edit /usr/src/sys/sys/param.h
#define MAXLOGNAME 17 /* max login name length (incl. NUL) */
buildworld/installworld and your good to go :)