[Pkg-shadow-devel] Bug#364909: useradd: confusion in man page; suggested fix

Reuben Thomas rrt at sc3d.org
Wed Apr 26 21:30:38 UTC 2006


On Wed, 26 Apr 2006, Nicolas François wrote:

> The [a-z_][a-z0-9_-]*[$] regular expression is what is usually permitted.

>From what I can see it should therefore be [$]? at the end: the $ is not 
mandatory as it is above.

>        It is usually recommended to only use usernames that begin with
>        a lower case letter or an underscore, and are only followed by
>        lower case letters, underscores, dashes, and dollar signs. In
>        regular expression terms: '[a-z_][a-z0-9_-]*[$]'.
>        On Debian, the constraints on the username are loosened: Usernames
>        must neither start by a dash ('-') nor contain a colon (':') or an
>        end of line ('\n').
>
> Does it look better to you?

That's better. You still need to mention the digits.

-- 
http://rrt.sc3d.org/ | RSA, n.  safety in numbers


More information about the Pkg-shadow-devel mailing list