From owner-freebsd-hackers Fri Oct 12 14: 3: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id 4F57837B401; Fri, 12 Oct 2001 14:03:01 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.245.143.238.Dial1.SanJose1.Level3.net [209.245.143.238]) by robin.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f9CL2wT17578; Fri, 12 Oct 2001 14:02:59 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id f9CKua705679; Fri, 12 Oct 2001 13:56:36 -0700 (PDT) (envelope-from cjc) Date: Fri, 12 Oct 2001 13:56:36 -0700 From: "Crist J. Clark" To: Yar Tikhiy Cc: hackers@FreeBSD.ORG Subject: Re: Valid user name Message-ID: <20011012135636.L293@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20011012145227.D46577@snark.rinet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011012145227.D46577@snark.rinet.ru>; from yar@FreeBSD.ORG on Fri, Oct 12, 2001 at 02:52:28PM +0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Oct 12, 2001 at 02:52:28PM +0400, Yar Tikhiy wrote: > Hi there, > > Now adduser(8) and pw(8) differ in what a valid user name is. > Adduser(8) enforces a user name to match the /^[a-z0-9_][a-z0-9_\-]*$/ > regexp. OTOH, pw(8) uses the Good Old Wrong Way of checking validity-- > it checks a user name against a list of *invalid* characters. > > I'm going to fix pw(8) so its view on valid user names is consistent > with that of adduser(8). > > Is there any reason to omit the period ('.') from the list of valid > characters? With the period included, the list would conform to > POSIX's definition of a valid user name. The historical reason '.' is avoided is because it breaks, # chown user.group file Syntax. See the COMPATIBILITY section of chown(8). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message