Hi,
I am trying to add users via a batch on a 4-STABLE
Using the perl made adduser:
[...]
Name: test
Password: ****
Fullname: test@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@test.com:/home/test:/bin/sh
while if I use pw:
/usr/sbin/pw useradd -ntest -ctest@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/