From owner-freebsd-stable@FreeBSD.ORG Thu Nov 11 07:43:04 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 868EA16A4CE for ; Thu, 11 Nov 2004 07:43:04 +0000 (GMT) Received: from kirk.giovannelli.it (dns01.ablia.net [83.149.160.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55E3843D46 for ; Thu, 11 Nov 2004 07:43:03 +0000 (GMT) (envelope-from gmarco@giovannelli.it) Received: from usul.giovannelli.it (freebsd.giovannelli.com [83.149.149.149]) by kirk.giovannelli.it (8.12.11/8.12.11) with ESMTP id iAB7hVbI023334 for ; Thu, 11 Nov 2004 08:43:33 +0100 (CET) (envelope-from gmarco@giovannelli.it) Message-Id: <6.1.2.0.2.20041111082523.01f19c40@83.149.160.120> X-Sender: gmarco@83.149.160.120 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Thu, 11 Nov 2004 08:44:11 +0100 To: stable@freebsd.org From: Gianmarco Giovannelli 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 Subject: 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:43:04 -0000 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/