Bug#264879: [Pkg-shadow-devel] Bug#264879: passwd: useradd allows invalid characters as username
Alexander Gattin
arg@online.com.ua
Sun, 3 Apr 2005 23:00:52 +0300
Hi!
On Sun, Apr 03, 2005 at 02:50:13PM +0200, Nicolas François wrote:
> > For example, you _can_ do `useradd -- -auser` but you
> > can't `userdel -- -auser` then.
BTW, it's proably a bug with `userdel -- -auser`...
> I'm sorry if this discussion came because I claimed Fedora allows usernames
> that start by a '-'. This was wrong.
You don't need to sorry in any way. What we need is to
clarify what should be allowed as username, and what
shouldn't.
I think, for example, that uppercase should be allowed.
And also, I have understood your position on this matter
since prevoius messages. :)
On Thu, 31 Mar 2005, Nicolas [iso-8859-1] François wrote:
> * the implementation from RedHat, which seems reasonable to me. (maybe
> we should not allow usernames starting with a '-').
I agree that we shouldn't allow this. :)
> Regarding uppercase, here is the thread:
> http://lists.debian.org/debian-devel/2004/03/msg00839.html
Thanks for the reference!, I'm reading this with
interest.
P.S. about buggy Unix standards (man gethostbyname):
> The SUS-v2 standard is buggy and declares the len parameter to be of
> type size_t. (That is wrong, because it has to be int, and size_t is
> not. The Austin draft makes it socklen_t, which is OK.)
--
WBR,
xrgtn