[Pkg-shadow-devel] Bug#377844: IMHO, the RE in useradd.8 doesn't match its description.

Nicolas François nicolas.francois at centraliens.net
Tue Jul 11 22:04:49 UTC 2006


On Tue, Jul 11, 2006 at 05:42:41PM +0200, shaulka at 012.net.il wrote:
> Package: passwd
> Version: 1:4.0.16-2
> Severity: normal
> Tag: patch
> 
>   If I read the description correctly then a $ sign is premitted from the 2nd position just
> like the other permitted characters.

No, it is not. $ is only allowed at the last position.

The next release man page should contain:

   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 let‐
   ters, digits, underscores, dashes, and optionally terminated by a  dol‐
   lar  sign.  In regular expression terms: ^[a-z_][a-z0-9_-]*[$]?$ On De‐
   bian, the only constraints are that usernames must neither start with a
   dash (’-’) nor contain a colon (’:’) or an end of line (’\n’).

Does it look OK to you?

Kind Regards,
-- 
Nekral




More information about the Pkg-shadow-devel mailing list