Date: Wed, 24 Oct 2007 09:20:04 GMT From: Tom Evans <tevans.uk@googlemail.com> To: freebsd-doc@FreeBSD.org Subject: Re: docs/117013: mount_smbfs(8) doesn't document -U (username) argument Message-ID: <200710240920.l9O9K4rb033465@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/117013; it has been noted by GNATS. From: Tom Evans <tevans.uk@googlemail.com> To: bug-followup@FreeBSD.org, tevans.uk@googlemail.com Cc: Subject: Re: docs/117013: mount_smbfs(8) doesn't document -U (username) argument Date: Wed, 24 Oct 2007 10:09:52 +0100 --=-BGXGkYjBsjg+5wSZB3wh Content-Type: text/plain Content-Transfer-Encoding: 7bit Hmm, doesn't really handle MIME, base64 does it? I'll try again with a non signed version.. As to why I wanted the option, fstab doesn't allow quoting of the mount point, which means a samba username with spaces in it cannot be specified there. I was hoping that by using an option to mount_smbfs, the username could be specified instead in the mountopts section of the fstab entry (also impossible). It is largely irrelevant, since neither work, so I worked around the issue with a custom rc script. This change is merely to document undocumented features. Tom BTW, the interface to the PR system is truly awful - why the hell can a PR only be updated by email? It is truly pap. --=-BGXGkYjBsjg+5wSZB3wh Content-Disposition: attachment; filename=mount_smbfs.diff.txt Content-Type: text/x-patch; name=mount_smbfs.diff.txt; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -NubB -x '*.sw?' mount_smbfs.orig/mount_smbfs.8 mount_smbfs/mount_smbfs.8 --- mount_smbfs.orig/mount_smbfs.8 2007-10-16 11:24:15.000000000 +0100 +++ mount_smbfs/mount_smbfs.8 2007-10-23 16:00:39.000000000 +0100 @@ -13,6 +13,7 @@ .Op Fl L Ar locale .Op Fl M Ar crights : Ns Ar srights .Op Fl N +.Op Fl U Ar username .Op Fl O Ar cowner : Ns Ar cgroup Ns / Ns Ar sowner : Ns Ar sgroup .Op Fl R Ar retrycount .Op Fl T Ar timeout @@ -68,6 +69,8 @@ If no password is found, .Nm prompts for it. +.It Fl U Ar username +Use specified username to authenticate with .It Fl O Ar cowner : Ns Ar cgroup Ns / Ns Ar sowner : Ns Ar sgroup Assign owner/group attributes to the newly created connection. .It Fl R Ar retrycount diff -NubB -x '*.sw?' mount_smbfs.orig/mount_smbfs.c mount_smbfs/mount_smbfs.c --- mount_smbfs.orig/mount_smbfs.c 2007-10-16 11:24:15.000000000 +0100 +++ mount_smbfs/mount_smbfs.c 2007-10-23 16:00:14.000000000 +0100 @@ -299,7 +299,7 @@ "usage: mount_smbfs [-E cs1:cs2] [-I host] [-L locale] [-M crights:srights]", " [-N] [-O cowner:cgroup/sowner:sgroup] [-R retrycount]", " [-T timeout] [-W workgroup] [-c case] [-d mode] [-f mode]", - " [-g gid] [-n opt] [-u uid] //user@server/share node"); + " [-g gid] [-n opt] [-u uid] [-U username] //user@server/share node"); exit (1); } --=-BGXGkYjBsjg+5wSZB3wh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710240920.l9O9K4rb033465>