From owner-freebsd-questions Wed Mar 21 1:27:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.unixathome.org (ns1.unixathome.org [203.79.82.27]) by hub.freebsd.org (Postfix) with ESMTP id 67E9737B724 for ; Wed, 21 Mar 2001 01:27:37 -0800 (PST) (envelope-from dan@langille.org) Received: from wocker (dan@wocker.int.nz.freebsd.org [192.168.0.99]) by ns1.unixathome.org (8.11.3/8.11.3) with ESMTP id f2L9RNb80578; Wed, 21 Mar 2001 21:27:23 +1200 (NZST) (envelope-from dan@langille.org) Message-Id: <200103210927.f2L9RNb80578@ns1.unixathome.org> From: "Dan Langille" Organization: novice in training To: "Ted Mittelstaedt" Date: Wed, 21 Mar 2001 21:27:22 +1200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: RE: rmuser is not case sensitive Reply-To: dan@langille.org Cc: , "Linh Pham" In-reply-to: <007701c0b1d0$551187a0$1401a8c0@tedm.placo.com> References: X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Done: http://www.freebsd.org/cgi/query-pr.cgi?pr=25961 On 20 Mar 2001, at 22:29, Ted Mittelstaedt wrote: > This should go in as a PR most definitely. UNIX is case > sensitive in usernames, although everyone recommends > that you don't use case-sensitive usernames precisely to > avoid this kind of problem. > > Ted Mittelstaedt tedm@toybox.placo.com > Author of: The FreeBSD Corporate Networker's Guide > Book website: http://www.freebsd-corp-net-guide.com > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Linh Pham > Sent: Monday, March 19, 2001 4:27 PM > To: dan@langille.org > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: rmuser is not case sensitive > > > On 2001-03-20, Dan Langille scribbled: > > # I was cleaning up a box which had both JOHN and john as users. I did > # a rmuser JOHN. It removed both users. Is this expected behaviour? I > # say it breaks POLA. > > In the rmuser script, there is a Search/Replace call that has /io, which > searches in non-case sensitive mode. > > Below is a clip of what I have under 4.2-STABLE: > > while () { > if (not /^\Q$login_name:/io) { > print NEW_PW; > } else { > print STDERR "Dropped entry for $login_name\n" if \ > $debug; > > $skipped = 1; > } > } > > Removing the i would probably resolve the non-case sensitive issue of > rmuser. > > -- > Linh Pham > [lplist@closedsrc.org] > > // 404b - Brain not found > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > -- Dan Langille pgpkey - finger dan@unixathome.org | http://unixathome.org/finger.php got any work? I'm looking for some. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message