Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 2004 09:03:18 +0100
From:      Gianmarco Giovannelli <gmarco@masternet.it>
To:        philk@rotfl.com.au (Phil Kernick)
Cc:        stable@freebsd.org
Subject:   Re: pw and adduser different checks ?
Message-ID:  <6.1.2.0.2.20041111090133.01f1fdc0@83.149.160.121>
In-Reply-To: <20041111075449.9608874599@mail.rotfl.com.au>
References:  <6.1.2.0.2.20041111082523.01f19c40@83.149.160.120> <20041111075449.9608874599@mail.rotfl.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
At 08.54 11/11/2004, Phil Kernick wrote:
 >> /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 ?
 >
 >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/



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