Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Oct 2000 08:38:03 +0200
From:      Gianmarco Giovannelli <gmarco@giovannelli.it>
To:        Doug Barton <DougB@gorean.org>
Cc:        stable@freebsd.org
Subject:   Re: username with -
Message-ID:  <5.0.0.25.0.20001009083602.02993e90@194.184.65.4>
In-Reply-To: <39E14EE3.8AFB1B88@gorean.org>
References:  <5.0.0.25.0.20001002082345.0256ceb0@194.184.65.4>

next in thread | previous in thread | raw e-mail | index | archive | help
At 08/10/2000, Doug Barton wrote:
>Gianmarco Giovannelli wrote:
> >
> > Hi,
> > Our adduser let me add username with a dash inside (I use them to identify
> > the user of virtual domains), like :
> > ac-info
> >
> > But rmuser refuse to delete them :
> > gmarco:/home/gmarco# rmuser ac-info
> > Sorry, login name must contain alphanumeric characters only.
> >
> > So, who is right ? adduser or rmuser ?
>
>         I think a better question is, why does rmuser need to check the
>validity of the username at all?  Shouldn't it just use getpwnam() to
>make sure the user is in the db and set the variables? If the user is
>there, rmuser ought to be able to remove it.


I agree with you.
Let's remove the check from rmuser : if a user is in the user db, rmuser 
must know how to wipe it from there :-)



Best Regards,
Gianmarco Giovannelli ,  "Unix expert since yesterday"
http://www.giovannelli.it/~gmarco
http://www2.masternet.it





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




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