Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2001 22:29:50 -0800
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        "Linh Pham" <lplist@closedsrc.org>, <dan@langille.org>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: rmuser is not case sensitive
Message-ID:  <007701c0b1d0$551187a0$1401a8c0@tedm.placo.com>
In-Reply-To: <Pine.BSF.4.33.0103191626080.13838-100000@q.closedsrc.org>

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


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?007701c0b1d0$551187a0$1401a8c0>