From owner-freebsd-stable@FreeBSD.ORG Thu Nov 11 07:54:54 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 A914116A4CE for ; Thu, 11 Nov 2004 07:54:54 +0000 (GMT) Received: from mail.rotfl.com.au (eth1779.sa.adsl.internode.on.net [150.101.235.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA16343D45 for ; Thu, 11 Nov 2004 07:54:53 +0000 (GMT) (envelope-from philk@rotfl.com.au) Received: from localhost (localhost [127.0.0.1]) by mail.rotfl.com.au (Postfix) with ESMTP id B3CC97459C; Thu, 11 Nov 2004 18:24:52 +1030 (CST) Received: from mail.rotfl.com.au ([127.0.0.1]) by localhost (mail.rotfl.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31300-03; Thu, 11 Nov 2004 18:24:49 +1030 (CST) In-Reply-To: <6.1.2.0.2.20041111082523.01f19c40@83.149.160.120> To: Gianmarco Giovannelli Date: Thu, 11 Nov 2004 18:24:49 +1030 (CST) X-Mailer: ELM [version 2.4ME+ PL119 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20041111075449.9608874599@mail.rotfl.com.au> From: philk@rotfl.com.au (Phil Kernick) X-Virus-Scanned: by amavisd-new at rotfl.com.au 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 07:54:54 -0000 > /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.