Difficulties with samba usernames with spaces + patch

Tom Evans tevans.uk at googlemail.com
Thu Oct 4 09:38:06 PDT 2007


On Thu, 2007-10-04 at 10:24 -0600, Warren Block wrote:
> On Thu, 4 Oct 2007, Tom Evans wrote:
> 
> > I'm trying to enter into my fstab an entry to mount a SMB resource, but
> > I'm hitting a problem as my provided username has a space in the name.
> 
> > This is perfectly fine on the command line, as one can quote the
> > required arguments when needed, but it seems impossible in fstab.
> > When mounted, mount -p is supposed to output the mounts in fstab(5)
> > format, but the output for samba mounts mounted with usernames with
> > spaces in does not work correctly.
> >
> > None of these work:
> >
> > //razor/it /mnt/it  smbfs rw,noauto,-U="Tom Evans"  0   0
> > //Tom Evans at razor /mnt/it smbfs rw,noauto 0 0
> 
> Worth trying:
> 
>    //Tom\ Evans at razor /mnt/it smbfs rw,noauto 0 0
> 
> -Warren Block * Rapid City, South Dakota USA

Ack, thought I'd mentioned all the combos I'd tried; no, unfortunately,
that doesn't work either. I believe (haven't had a chance to seriously
look at any code, only at lunch) that it is parsed solely on whitespace.

Thanks anyways

Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071004/00ebc036/attachment.pgp


More information about the freebsd-current mailing list