pw and adduser different checks ?
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
>> 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
>> 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 ?
Gianmarco Giovannelli , "Unix expert since yesterday"
More information about the freebsd-stable