Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2000 21:16:10 GMT
From:      Salvo Bartolotta <bartequi@inwind.it>
To:        "Brandon D. Valentine" <bandix@looksharp.net>, Chris Byrnes <chris@awww.jeah.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Removing user with "-" in username
Message-ID:  <20001023.21161000@bartequi.ottodomain.org>
References:  <Pine.BSF.4.21.0010231540020.65525-100000@turtle.looksharp.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 10/23/00, 8:41:16 PM, "Brandon D. Valentine" <bandix@looksharp.net>
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.

<blockquote>

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

</blockquote>

Best regards,
Salvo





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




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