Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2001 01:13:25 -0800 (PST)
From:      dan@freebsddiary.org
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/25961: rmuser is not case sensitive
Message-ID:  <200103210913.f2L9DPR26693@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         25961
>Category:       bin
>Synopsis:       rmuser is not case sensitive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 21 01:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dan Langille
>Release:        FreeBSD 4.3-beta
>Organization:
The FreeBSD Diary
>Environment:
FreeBSD [suppressed].net.au 4.3-BETA FreeBSD 4.3-BETA #0: Mon Mar 12 08:58:20 CST 2001     
root@[suppressed].net.au:/usr/src/sys/compile/PENOLA  i386
>Description:
rmuser is not case sensitive.  It will confirm the user you wish to 
delete, but then it deletes more than one user.
>How-To-Repeat:
adduser JOHN, adduser john, them rmuser john, both users 
are removed.
>Fix:
Linh Pham <lplist@closedsrc.org> reported this in response to my 
post in -questions (200103192332.f2JNWXb68437@ns1.unixathome.org):

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.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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