Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 13:21:02 -0700 (PDT)
From:      kway@wgate.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/22278: rmuser does not allow deletion of all usernames that adduser can create
Message-ID:  <20001024202102.57DA337B4CF@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22278
>Category:       misc
>Synopsis:       rmuser does not allow deletion of all usernames that adduser can create
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 24 13:30:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Way
>Release:        4.1.1
>Organization:
WorldGate Communications
>Environment:
FreeBSD way.eng.tvol.net 4.1.1-STABLE FreeBSD 4.1.1-STABLE #0: Fri Oct 13 15:02:15 EDT 2000     root@way.eng.tvol.net:/usr/obj/usr/src/sys/KEVIN  i386
>Description:
rmuser does not allow deletion of all usernames for which adduser allows
creation.  In particular, usernames with a - in them.
>How-To-Repeat:
adduser with foo-bar
rmuser foo-bar
>Fix:
--- rmuser.perl.bak     Tue Oct 24 16:05:49 2000
+++ rmuser.perl Tue Oct 24 16:20:35 2000
@@ -108,7 +108,7 @@
     # 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*$/);
+       if ($login_name !~ /^[a-zA-Z0-9_][a-zA-Z0-9_\-]*$/);
 } else {
     if ($affirm) {
        print STDERR "${whoami}: Error: -y option given without username!\n";


>Release-Note:
>Audit-Trail:
>Unformatted:


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?20001024202102.57DA337B4CF>