Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 2004 08:44:11 +0100
From:      Gianmarco Giovannelli <gmarco@giovannelli.it>
To:        stable@freebsd.org
Subject:   pw and adduser different checks ?
Message-ID:  <6.1.2.0.2.20041111082523.01f19c40@83.149.160.120>

next in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.1.2.0.2.20041111082523.01f19c40>