Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2017 09:49:22 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
Cc:        src-committers <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r322678 - in head/usr.sbin/pw: . tests
Message-ID:  <CAPyFy2Ag9%2BXKm%2BdOVh9L0mPW7G3hOD_Gc4Yzzwft9hfX13Srgg@mail.gmail.com>
In-Reply-To: <CEE799EF-356D-46F8-BD04-640A4A33EC79@gmail.com>
References:  <201708190032.v7J0WQAa017551@repo.freebsd.org> <CEE799EF-356D-46F8-BD04-640A4A33EC79@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 18 August 2017 at 21:08, Ngie Cooper (yaneurabeya)
<yaneurabeya@gmail.com> wrote:
>
>> On Aug 18, 2017, at 17:32, Ed Maste <emaste@freebsd.org> wrote:
>>
>> Author: emaste
>> Date: Sat Aug 19 00:32:26 2017
>> New Revision: 322678
>> URL: https://svnweb.freebsd.org/changeset/base/322678
>>
>> Log:
>>  pw useradd: Validate the user name before creating the entry
>>
>>  Previouly it was possible to create users with spaces in the name with:
>>  pw useradd -u 1234 -g 1234 -n 'test user'
>>
>>  The "-g 1234" is relevant, without it the name was already rejected
>>  as expected:
...
>
> Usernames with passwords are permitted in some cases, e.g., AD.

I assume you meant "usernames with spaces"?

Note that this change only addresses the discrepancy between "pw
useradd 'test user'" (which was previously rejected) and "pw useradd
'test user' -g <gid>" (which was accepted prior to this change).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2Ag9%2BXKm%2BdOVh9L0mPW7G3hOD_Gc4Yzzwft9hfX13Srgg>