Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2001 14:52:28 +0400
From:      Yar Tikhiy <yar@freebsd.org>
To:        hackers@freebsd.org
Subject:   Valid user name
Message-ID:  <20011012145227.D46577@snark.rinet.ru>

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

-- 
Yar

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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