[Samba] win2k usernames with spaces

John H Terpstra jht at samba.org
Thu Feb 27 04:28:54 GMT 2003


On Thu, 26 Feb 2003, Bradley W. Langhorst wrote:

> On Wed, 2003-02-26 at 19:41, maq wrote:
> > Hi all,
> > 	one of the win2k clients of my network uses an ID with
> > one space inside, e.g. "jack smith". I succeeded in creating a
> > Linux user with such a name, but have troubles in adding him to
> > the smb users.
> > Any suggestion?
> did you try jack\ smith ?
> i've never tried this..
>
> another option would be to set up a user mapping
> between jack smith and jack_smith
>
> I think most unix stuff will not deal well with the spaces in the names

Best work-around is to create a Linux user without the space (eg: jacks),
then in smb.conf [globals] put:
	usename map = /etc/samba/smbusers

and in /etc/samba/smbusers:

root = administrator
jacks = "Jack Smith"


- John T.
-- 
John H Terpstra
Email: jht at samba.org


More information about the samba mailing list