From owner-freebsd-stable Mon Oct 9 11:10:27 2000 Delivered-To: freebsd-stable@freebsd.org Received: from paperboy.sixforty.co.uk (paperboy.sixforty.co.uk [195.10.242.11]) by hub.freebsd.org (Postfix) with ESMTP id 5500237B502 for ; Mon, 9 Oct 2000 11:10:23 -0700 (PDT) Received: from lfarr (daisy.sixforty.co.uk [195.10.242.200]) by paperboy.sixforty.co.uk (8.9.3/8.9.3) with SMTP id TAA91490 for ; Mon, 9 Oct 2000 19:10:15 +0100 (BST) (envelope-from freebsd-net@sixforty.co.uk) From: "Lawrence Farr" To: Subject: RE: username with - Date: Mon, 9 Oct 2000 19:10:52 +0100 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <200010091802.MAA13347@harmony.village.org> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Can we also set adduser to do the same? (It won't allow .) Lawrence Farr EPC Direct Limited mailto:lawrence@epcdirect.co.uk T:01179666123 F:01179666111 M:07970780901 > -----Original Message----- > From: owner-freebsd-stable@FreeBSD.ORG > [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Warner Losh > Sent: 09 October 2000 19:02 > To: Gianmarco Giovannelli > Cc: Doug Barton; stable@FreeBSD.ORG > Subject: Re: username with - > > > In message <5.0.0.25.0.20001009083602.02993e90@194.184.65.4> > Gianmarco Giovannelli writes: > : Let's remove the check from rmuser : if a user is in the user > db, rmuser > : must know how to wipe it from there :-) > > Index: rmuser.perl > =================================================================== > 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 == 0) { > # Username was given as a parameter > $login_name = 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 =~ /:/); > } else { > if ($affirm) { > print STDERR "${whoami}: Error: -y option given without > username!\n"; > > Nuff said? > > Warner > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message