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

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


Phil.



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