svn commit: r322678 - in head/usr.sbin/pw: . tests
Ed Maste
emaste at freebsd.org
Mon Aug 21 13:49:43 UTC 2017
On 18 August 2017 at 21:08, Ngie Cooper (yaneurabeya)
<yaneurabeya at gmail.com> wrote:
>
>> On Aug 18, 2017, at 17:32, Ed Maste <emaste at 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).
More information about the svn-src-head
mailing list