Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2001 21:27:22 +1200
From:      "Dan Langille" <dan@langille.org>
To:        "Ted Mittelstaedt" <tedm@toybox.placo.com>
Cc:        <freebsd-questions@FreeBSD.ORG>, "Linh Pham" <lplist@closedsrc.org>
Subject:   RE: rmuser is not case sensitive
Message-ID:  <200103210927.f2L9RNb80578@ns1.unixathome.org>
In-Reply-To: <007701c0b1d0$551187a0$1401a8c0@tedm.placo.com>
References:  <Pine.BSF.4.33.0103191626080.13838-100000@q.closedsrc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 (<MASTER_PW>) {
> 	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103210927.f2L9RNb80578>