From owner-freebsd-current Wed Nov 27 18:59:56 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B55637B401; Wed, 27 Nov 2002 18:59:55 -0800 (PST) Received: from leviathan.inethouston.net (leviathan.inethouston.net [66.64.12.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82DE943E9C; Wed, 27 Nov 2002 18:59:54 -0800 (PST) (envelope-from dwcjr@inethouston.net) Received: from dwcjr (unknown [192.168.1.254]) by leviathan.inethouston.net (Postfix) with SMTP id 5EEA610DDD3; Wed, 27 Nov 2002 21:00:00 -0600 (CST) Message-ID: <00a601c2968a$38f48f40$fe01a8c0@dwcjr> From: "David W. Chapman Jr." To: "Terry Lambert" , "Juli Mallett" Cc: References: <20021127192126.GA31706@leviathan.inethouston.net> <3DE52B70.44402B98@mindspring.com> <20021127203401.GA35573@leviathan.inethouston.net> <3DE5315A.FC6D59B@mindspring.com> <20021127142348.A60606@FreeBSD.org> <3DE585AA.39584D8E@mindspring.com> Subject: Re: pw_user.c change for samba Date: Wed, 27 Nov 2002 20:59:51 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > The '$' is a pain. None of the examples in the original post > > > would have worked, because the '$' was not '\$', and the shell > > > would have blown chunks over the "variable expansion". > > > > Your foundation is flawed, we allow $ in passwd just fine, and > > the only problem here is whether a pw should let someone do > > something we support which they might need to do. > > Apply the patch. > > Then try to add a user with a trailing "$" via adduser(1); Note > the failure. I think NAKAJI Hiroyuki pointed out that adduser has nothing to do with pw_user and if you add usernameregexp = '^[a-z0-9_][a-z0-9_-]*[a-z0-9_$-]$' to /etc/adduser.conf adduser will then allow $'s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message