Difficulties with samba usernames with spaces + patch
Simon Barner
barner at FreeBSD.org
Fri Oct 19 00:33:53 PDT 2007
Craig Rodrigues wrote:
> On Thu, Oct 04, 2007 at 03:19:09PM +0100, Tom Evans wrote:
> > Mounting from the command line works either with correctly quoting the
> > host, or using the -U switch, and correctly quoting the argument.
> >
> > mount_smbfs -U "Tom Evans" //RAZOR/it /mnt/it
> > mount_smbfs "//TOM EVANS at RAZOR/IT" /mnt/it
> >
> > This clearly seems to be a limitation of fstab(5) (inability to quote
> > arguments) and/or nsmb.conf(5) (inability to specify username). I am
> > going to change one or the other to allow this to work; which would be
> > preferable?
>
>
> If you change fstab(5) to accept "quoted arguments", then you
> would have to change getfsent() so that it can properly parse an
> /etc/fstab with quoted arguments. Then you would have to verify that
> clients of getfsent() such as mount(8) and quotacheck(8) still worked.
>
> If you could get that to work, that would be quite nice.
Please see
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/55539
which contains such a patch for getfsent (using vis(3)). It could use
some testing though (I never tested it with quotacheck(8) for example).
Simon
--
Best regards / Viele Grüße, barner at FreeBSD.org
Simon Barner barner at gmx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071019/dcc9b207/attachment.pgp
More information about the freebsd-current
mailing list