Re: Difficulties with samba usernames with spaces + patch

From: Tom Evans <tevans.uk_at_googlemail.com>
Date: Thu, 04 Oct 2007 17:38:00 +0100
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

Received on Thu Oct 04 2007 - 14:38:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:18 UTC