From owner-freebsd-questions Tue Mar 20 22:30: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [206.29.169.15]) by hub.freebsd.org (Postfix) with ESMTP id D94F037B720 for ; Tue, 20 Mar 2001 22:30:01 -0800 (PST) (envelope-from tedm@toybox.placo.com) Received: from tedm.placo.com (nat-rtr.freebsd-corp-net-guide.com [206.29.168.154]) by mail.freebsd-corp-net-guide.com (8.11.1/8.11.1) with SMTP id f2L6Tok09325; Tue, 20 Mar 2001 22:29:54 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Linh Pham" , Cc: Subject: RE: rmuser is not case sensitive Date: Tue, 20 Mar 2001 22:29:50 -0800 Message-ID: <007701c0b1d0$551187a0$1401a8c0@tedm.placo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message