misc/160775: [patch] provide a better example for passwordless guest mounting

Garrett Cooper yanegomi at gmail.com
Fri Sep 16 21:40:07 UTC 2011

>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
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 16 21:40:06 UTC 2011
>Originator:     Garrett Cooper
>Release:        9.0-BETA2
FreeBSD burnout.ixsystems.com 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224989: Sun Aug 21 14:12:11 PDT 2011     gcooper at burnout.ixsystems.com:/usr/obj/usr/src/sys/BURNOUT  amd64
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.


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 -E koi8-r:cp866 //guest at samba/tmp /smb/tmp
-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):
-.Dl "//guest at samba/public    /smb/public     smbfs  rw,noauto 0   0"
+.Dl "//guest at samba/public    /smb/public     smbfs  rw,noauto,-N 0   0"
 .An Boris Popov Aq bp at butya.kz ,
 .Aq bp at FreeBSD.org


More information about the freebsd-bugs mailing list