xfs
[Top] [All Lists]

Bug#705483: xfsprogs: xfs_quota misinterprets usernames with leading dig

To: James Carter <james.carter@xxxxxxxxxxxxxx>, <705483@xxxxxxxxxxxxxxx>
Subject: Bug#705483: xfsprogs: xfs_quota misinterprets usernames with leading digits
From: Rich Johnston <rjohnston@xxxxxxx>
Date: Tue, 16 Apr 2013 07:29:48 -0500
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <516D0911.5080408@xxxxxxxxxxxxxx>
References: <516C12DB.3060806@xxxxxxxxxxxxxx> <516C25AC.60506@xxxxxxx> <516D0911.5080408@xxxxxxxxxxxxxx>
Reply-to: Rich Johnston <rjohnston@xxxxxxx>, 705483@xxxxxxxxxxxxxxx
Resent-cc: XFS Development Team <xfs@xxxxxxxxxxx>
Resent-date: Tue, 16 Apr 2013 12:39:02 +0000
Resent-from: Rich Johnston <rjohnston@xxxxxxx>
Resent-message-id: <handler.705483.B705483.136611576726057@xxxxxxxxxxxxxxx>
Resent-sender: Debian BTS <debbugs@xxxxxxxxxxxxxxxxxxxx>
Resent-to: debian-bugs-dist@xxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1
On 04/16/2013 03:17 AM, James Carter wrote:
On 15/04/13 17:07, Rich Johnston wrote:

I don't think this is a bug, username must begin with a character
(unless you created the user using NIS or adduser --force-badname).

My understanding that this is a recommendation rather than a
requirement. useradd(8) has the following to say:

        On Debian, the only constraints are that usernames must neither
start
        with a dash ('-') nor contain a colon (':') or a whitespace
(space: '
        ', end of line: '\n', tabulation: '\t', etc.). Note that using a
slash
        ('/') may break the default algorithm for the definition of the
user's
        home directory.

In any case, I'd still consider it a bug that trailing non-numeric
characters were just silently ignored.


Interesting I was not aware of the Debian difference. My understanding was that usernames with leading digits would have trouble with other utilities on other versions of Unix and flavors of Linux as they would interpret the username as numeric UID. I was able to create a user with leading digits and trailing alpha characters using vipw. Because chown works using this username, we will look into fixing this bug. Thanks for pointing it out.

--Rich

<Prev in Thread] Current Thread [Next in Thread>