From owner-freebsd-questions Mon Oct 23 13:15:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay2.inwind.it (relay2.inwind.it [212.141.53.73]) by hub.freebsd.org (Postfix) with ESMTP id 67E7737B479 for ; Mon, 23 Oct 2000 13:15:40 -0700 (PDT) Received: from bartequi.ottodomain.org (62.98.153.184) by relay2.inwind.it (5.1.046) id 39CB0979007F363E; Mon, 23 Oct 2000 22:14:44 +0200 From: Salvo Bartolotta Date: Mon, 23 Oct 2000 21:16:10 GMT Message-ID: <20001023.21161000@bartequi.ottodomain.org> Subject: Re: Removing user with "-" in username To: "Brandon D. Valentine" , Chris Byrnes Cc: freebsd-questions@FreeBSD.ORG References: X-Mailer: SuperCalifragilis X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 10/23/00, 8:41:16 PM, "Brandon D. Valentine" wrote regarding Re: Removing user with "-" in username: > On Mon, 23 Oct 2000, Chris Byrnes wrote: > >awww# rmuser -y irc-argentina > >Sorry, login name must contain alphanumeric characters only. > > > >Ugh. Foo. Feh. > > > >I remember a lengthy discussion about this awhile back, but > >can't seem to find the archive. > Consensus was that rmuser should remove any username that adduser > allowed to be created. There was talk of fixing this. Then people > jetted off to BSDCon. The fix is, learn how to use vipw, edit > /etc/group, and rm -rf an old home directory. =3D) Dear Brandon Valentine and Chris Byrnes, The following letter from Warner Losh is from my personal (local) archives, reposted for your convenience.
Index: rmuser.perl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/adduser/rmuser.perl,v retrieving revision 1.10 diff -u -r1.10 rmuser.perl --- rmuser.perl 2000/03/14 14:27:34 1.10 +++ rmuser.perl 2000/10/09 18:00:58 @@ -107,8 +107,8 @@ if ($#ARGV =3D=3D 0) { # Username was given as a parameter $login_name =3D pop(@ARGV); - die "Sorry, login name must contain alphanumeric characters only.\n" - if ($login_name !~ /^[a-zA-Z0-9_]\w*$/); + die "Sorry, login name must not contain colons (:).\n" + if ($login_name =3D~ /:/); } else { if ($affirm) { print STDERR "${whoami}: Error: -y option given without username!\n"; Nuff said? Warner
Best regards, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message