pw and adduser different checks ?
Gianmarco Giovannelli
gmarco at giovannelli.it
Wed Nov 10 23:43:04 PST 2004
Hi,
I am trying to add users via a batch on a 4-STABLE
Using the perl made adduser:
[...]
Name: test
Password: ****
Fullname: test at test.com
Uid: 1000
Gid: 1000 (test)
Class:
Groups: test
HOME: /home/test
Shell: /bin/sh
OK? (y/n) [y]:
Added user ``test''
And in the master.passwd I found :
test::1000:1000::0:0:test at test.com:/home/test:/bin/sh
while if I use pw:
/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 ?
Thanks.
Best Regards,
Gianmarco Giovannelli , "Unix expert since yesterday"
http://utenti.gufi.org/~gmarco/
More information about the freebsd-stable
mailing list