Date: Wed, 21 Mar 2001 09:10:06 -0800 (PST) From: dan@freebsddiary.org To: freebsd-bugs@FreeBSD.org Subject: bin/25961: rmuser is not case sensitive Message-ID: <200103211710.f2LHA6i88131@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/25961; it has been noted by GNATS. From: dan@freebsddiary.org To: freebsd-gnats-submit@FreeBSD.ORG Cc: Subject: bin/25961: rmuser is not case sensitive Date: Wed, 21 Mar 2001 01:13:25 -0800 (PST) >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 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?200103211710.f2LHA6i88131>