From owner-freebsd-stable@FreeBSD.ORG Thu Nov 11 08:02:18 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B81516A4CE for ; Thu, 11 Nov 2004 08:02:18 +0000 (GMT) Received: from kirk.giovannelli.it (dns01.ablia.net [83.149.160.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEE5E43D53 for ; Thu, 11 Nov 2004 08:02:10 +0000 (GMT) (envelope-from gmarco@masternet.it) Received: from usul.masternet.it (freebsd.giovannelli.com [83.149.149.149]) by kirk.giovannelli.it (8.12.11/8.12.11) with ESMTP id iAB82cQx023417; Thu, 11 Nov 2004 09:02:40 +0100 (CET) (envelope-from gmarco@masternet.it) Message-Id: <6.1.2.0.2.20041111090133.01f1fdc0@83.149.160.121> X-Sender: gmarco@83.149.160.121 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Thu, 11 Nov 2004 09:03:18 +0100 To: philk@rotfl.com.au (Phil Kernick) From: Gianmarco Giovannelli 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: ClamAV devel-20041012/584/Wed Nov 10 15:59:51 2004 clamav-milter version 0.80j on localhost X-Virus-Status: Clean cc: stable@freebsd.org Subject: Re: pw and adduser different checks ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 08:02:18 -0000 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/