Difficulties with samba usernames with spaces + patch

Warren Block wblock at wonkity.com
Thu Oct 4 09:45:34 PDT 2007


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


More information about the freebsd-current mailing list