From owner-freebsd-bugs Tue Jan 28 11: 0:49 2003 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE23F37B401 for ; Tue, 28 Jan 2003 11:00:47 -0800 (PST) Received: from eclipse.acs.rpi.edu (eclipse.acs.rpi.edu [128.113.24.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 541D443F93 for ; Tue, 28 Jan 2003 11:00:45 -0800 (PST) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by eclipse.acs.rpi.edu (8.9.3/8.9.3) with ESMTP id NAA25543; Tue, 28 Jan 2003 13:59:19 -0500 (EST) Mime-Version: 1.0 X-Sender: gad@eclipse.acs.rpi.edu (Unverified) Message-Id: In-Reply-To: <20030128132711.GD296@bal740r0.mecon.gov.ar> References: <200301280126.h0S1QhqH098326@freefall.freebsd.org> <20030128132711.GD296@bal740r0.mecon.gov.ar> Date: Tue, 28 Jan 2003 14:00:34 -0500 To: Fernando Schapachnik From: Garance A Drosehn Subject: Re: bin/46890: [PATCH] pw doesn't accept characters like $ although it should according to passwd(5) Cc: freebsd-bugs@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At 10:27 AM -0300 1/28/03, Fernando Schapachnik wrote: >Ok, thanks for the commit! Regarding your comment in >bin/28773 let me point out that a MFC to stable would >be very usefull. Some places (like us) prefer to user >pw instead of useradd, for its flexibility >(pw user add -h, for instance). Okay. I will also look into committing the change to stable. >I'll try to update the passwd(5) man page describing the >allowed chars and submit it as a PR. Is that right? I am not sure what the best change would be. The passwd(5) man page describes what "the system" will allow, and that can and will be less restrictive than what the 'pw' command would allow for creating a new userid. The 'NOTES' section of the pw(1) man page talks about the restriction on 8-bit characters, for instance. We probably should have updates to both passwd(5) and pw(1). For instance, passwd(5) might only say that "it is a bad idea to include the '$' character in a userid", while pw(1) would say "you can not use '$', except as the last character in a userid or group name". I must admit I am reluctant to think about the man-page changes, as it would take me days or even weeks to decide what the best wording would be! But if you have an idea, you could write it up as a separate PR and someone in the doc group could look at that. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message