From owner-freebsd-doc@FreeBSD.ORG Wed Oct 24 09:20:14 2007 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CC5316A417 for ; Wed, 24 Oct 2007 09:20:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6F42113C494 for ; Wed, 24 Oct 2007 09:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9O9K4i0033466 for ; Wed, 24 Oct 2007 09:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9O9K4rb033465; Wed, 24 Oct 2007 09:20:04 GMT (envelope-from gnats) Date: Wed, 24 Oct 2007 09:20:04 GMT Message-Id: <200710240920.l9O9K4rb033465@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Tom Evans Cc: Subject: Re: docs/117013: mount_smbfs(8) doesn't document -U (username) argument X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tom Evans List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 09:20:14 -0000 The following reply was made to PR docs/117013; it has been noted by GNATS. From: Tom Evans 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--