pw and adduser different checks ?

Gianmarco Giovannelli gmarco at masternet.it
Thu Nov 11 00:02:18 PST 2004


At 08.54 11/11/2004, Phil Kernick wrote:
 >> /usr/sbin/pw useradd -ntest -ctest at test.com -d/home/test -g1000 -s/bin/sh
 >> -u1000
 >> pw: invalid character `@' at position 4 in gecos field
 >>
 >> Who is right of both the program ?  :-)
 >>
 >> IMHO I find usefull to have the @ in the gecos field  because it is an 
easy
 >> way to associate login <-> email in multidomain enviroment.
 >> But probably there is some drawback I am not aware of ...
 >> Any explanation ?
 >
 >The problem is pw being unreasonably restrictive.
 >
 >In the same way, you can't use pw to add a user with a $ in their name,
 >which is necessary for samba.

If having such chars is not an hazard or a risk why some committer don't 
modify pw to let it to use them ?

Best Regards,
Gianmarco Giovannelli ,  "Unix expert since yesterday"
http://utenti.gufi.org/~gmarco/



More information about the freebsd-stable mailing list