From owner-freebsd-doc@FreeBSD.ORG Mon May 26 06:20:01 2014 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 270222B2 for ; Mon, 26 May 2014 06:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12E482B67 for ; Mon, 26 May 2014 06:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s4Q6K0Zx097694 for ; Mon, 26 May 2014 06:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s4Q6K031097693; Mon, 26 May 2014 06:20:00 GMT (envelope-from gnats) Date: Mon, 26 May 2014 06:20:00 GMT Message-Id: <201405260620.s4Q6K031097693@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: venture37 Subject: Re: docs/47594: [patch] passwd(5) incorrectly states allowed username and group syntax Reply-To: venture37 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2014 06:20:01 -0000 The following reply was made to PR docs/47594; it has been noted by GNATS. From: venture37 To: bug-followup@FreeBSD.org, fernando@mecon.gov.ar Cc: Subject: Re: docs/47594: [patch] passwd(5) incorrectly states allowed username and group syntax Date: Mon, 26 May 2014 07:19:31 +0100 This is a multi-part message in MIME format. --------------070708080302060506070403 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Attached is a diff which applies to -HEAD (r266021) Checked contents of badchars in pw_checkname(), usr.sbin/pw/pw_user.c to see if the list is still correct. --------------070708080302060506070403 Content-Type: text/plain; charset=UTF-8; name="passwd.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="passwd.txt" Index: share/man/man5/passwd.5 =================================================================== --- share/man/man5/passwd.5 (revision 266021) +++ share/man/man5/passwd.5 (working copy) @@ -126,8 +126,21 @@ entries, and that one by random selection. .Pp The login name must never begin with a hyphen -.Pq Ql - ; -also, it is strongly +.Pq Ql \&- +and should not contain 8-bit characters, neither tab nor spaces, colons +.Pq Ql \&: , +quotes +.Pq Ql \&" , +mathematical and comparison operators +.Pq Ql \&+*-%^<>=# , +parenthesis +.Pq Ql \&() , +and various punctuation and other symbols +.Pq Ql \&,&$!@~?|\[rs]/ . +As a special case to help Samba users, the dollar symbol +.Pq Ql \&$ +is allowed as the last character. +Also, it is strongly suggested that neither upper-case characters or dots .Pq Ql \&. be part --------------070708080302060506070403--