On 24/07/2019 17:27, Dennis Lee Bieber wrote:
> On Tue, 23 Jul 2019 16:21:13 -0400, Lew Pitcher
> declaimed the following:
>
>> The smbpasswd(8) command maintains the Samba SMB password file that Samba
>> uses to validate incoming SMB logins against. The current documentation of
>> smbpasswd(8) and it's password file (smbpasswd(5)) indicate that the Samba
>> username...
>> "must be a name that already exists in the standard UNIX passwd file"
>> (see https://www.samba.org/samba/docs/current/man-html/smbpasswd.5.html
>> and https://www.samba.org/samba/docs/current/man-html/smbpasswd.8.html)
>>
>> And, the username that already exists in the standard UNIX passwd file is
>> restricted by the rules of useradd(8), where...
>> "Usernames must start with a lower case letter or an underscore,
>> followed by lower case letters, digits, underscores, or dashes. They
>> can end with a dollar sign. In regular expression terms:
>> [a-z_][a-z0-9_-]*[$]?"
>> and, thus, do not contain spaces.
>>
>> So, to access (by username and password) an SMB share, shared by a Linux
>> user through Samba, the Windows user cannot have a space in their username.
>>
>
> If that's true -- it also means the username can't have Caps...
>
> Debian, however, appears to accept almost anything -- can not start
> with "-", nor contain a ":" or whitespace, and "/" could cause problems for
> the default home directory. https://www.unix.com/man-page/linux/8/useradd/
> -- and since Raspbian is a Debian branch...
>
> I can understand the - and : restrictions -- the former looks too much
> like an option in command-line tools, and the latter is the field separator
> in the passwd file. / is acceptable if the user was created with a
> non-default home directory specification.
>
Debian doesn't accept spaces in user names.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|