Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2011 21:33:56 GMT
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/160775: [patch] provide a better example for passwordless guest mounting
Message-ID:  <201109162133.p8GLXuKe004522@red.freebsd.org>
Resent-Message-ID: <201109162140.p8GLe6rf039606@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         160775
>Category:       misc
>Synopsis:       [patch] provide a better example for passwordless guest mounting
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 16 21:40:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9.0-BETA2
>Organization:
n/a
>Environment:
FreeBSD burnout.ixsystems.com 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224989: Sun Aug 21 14:12:11 PDT 2011     gcooper@burnout.ixsystems.com:/usr/obj/usr/src/sys/BURNOUT  amd64
>Description:
The example of how to add a mountpoint in the mount_smbfs(8) manpage with a guest account using fstab(5) blocks on boot with a password prompt.

I updated the example to include the -N flag (don't prompt for a password), so mounting won't block remote login at boot.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: contrib/smbfs/mount_smbfs/mount_smbfs.8
===================================================================
--- contrib/smbfs/mount_smbfs/mount_smbfs.8	(revision 225558)
+++ contrib/smbfs/mount_smbfs/mount_smbfs.8	(working copy)
@@ -157,11 +157,11 @@
 mount_smbfs -I 192.168.20.3 -E koi8-r:cp866 //guest@samba/tmp /smb/tmp
 .Ed
 .Pp
-It is possible to use
+It is also possible to use
 .Xr fstab 5
-for smbfs mounts:
+for smbfs mounts (the example below doesn't prompt for a password):
 .Pp
-.Dl "//guest@samba/public    /smb/public     smbfs  rw,noauto 0   0"
+.Dl "//guest@samba/public    /smb/public     smbfs  rw,noauto,-N 0   0"
 .Sh AUTHORS
 .An Boris Popov Aq bp@butya.kz ,
 .Aq bp@FreeBSD.org


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109162133.p8GLXuKe004522>