From nobody@FreeBSD.org  Fri Sep 16 21:33:56 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8C309106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Sep 2011 21:33:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 7B7E28FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Sep 2011 21:33:56 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8GLXua8004551
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Sep 2011 21:33:56 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8GLXuKe004522;
	Fri, 16 Sep 2011 21:33:56 GMT
	(envelope-from nobody)
Message-Id: <201109162133.p8GLXuKe004522@red.freebsd.org>
Date: Fri, 16 Sep 2011 21:33:56 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] provide a better example for passwordless guest mounting
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160775
>Category:       docs
>Synopsis:       [patch] provide a better example for passwordless guest mounting
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 16 21:40:06 UTC 2011
>Closed-Date:    Tue Feb 07 22:31:38 UTC 2012
>Last-Modified:  Sun Feb 03 22:29:28 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Fri Sep 16 21:57:52 UTC 2011 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160775 
State-Changed-From-To: open->patched 
State-Changed-By: delphij 
State-Changed-When: Sat Sep 17 22:17:54 UTC 2011 
State-Changed-Why:  
Patch applied to -HEAD, MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160775 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/160775: commit references a PR
Date: Sat, 17 Sep 2011 22:17:46 +0000 (UTC)

 Author: delphij
 Date: Sat Sep 17 22:17:31 2011
 New Revision: 225643
 URL: http://svn.freebsd.org/changeset/base/225643
 
 Log:
   Change the example of using smbfs in fstab to a password-less one,
   which is less likely to block a remote system from boot.
   
   Submitted by:	Garrett Cooper <yaneurabeya@gmail.com>
   PR:		doc/160775
   MFC after:	1 month
   Approved by:	re (kib)
 
 Modified:
   head/contrib/smbfs/mount_smbfs/mount_smbfs.8
 
 Modified: head/contrib/smbfs/mount_smbfs/mount_smbfs.8
 ==============================================================================
 --- head/contrib/smbfs/mount_smbfs/mount_smbfs.8	Sat Sep 17 20:48:49 2011	(r225642)
 +++ head/contrib/smbfs/mount_smbfs/mount_smbfs.8	Sat Sep 17 22:17:31 2011	(r225643)
 @@ -157,11 +157,11 @@ mount_smbfs -I samba.mydomain.com //gues
  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
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: delphij 
State-Changed-When: Tue Feb 7 22:31:25 UTC 2012 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160775 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/160775: commit references a PR
Date: Tue,  7 Feb 2012 22:31:36 +0000 (UTC)

 Author: delphij
 Date: Tue Feb  7 22:31:16 2012
 New Revision: 231167
 URL: http://svn.freebsd.org/changeset/base/231167
 
 Log:
   MFC r225643,225644:
   
   Change the example of using smbfs in fstab to a password-less one,
   which is less likely to block a remote system from boot.
   
   Submitted by:	Garrett Cooper <yaneurabeya@gmail.com>
   PR:		doc/160775
 
 Modified:
   stable/8/contrib/smbfs/mount_smbfs/mount_smbfs.8
 Directory Properties:
   stable/8/contrib/smbfs/   (props changed)
 
 Modified: stable/8/contrib/smbfs/mount_smbfs/mount_smbfs.8
 ==============================================================================
 --- stable/8/contrib/smbfs/mount_smbfs/mount_smbfs.8	Tue Feb  7 22:13:54 2012	(r231166)
 +++ stable/8/contrib/smbfs/mount_smbfs/mount_smbfs.8	Tue Feb  7 22:31:16 2012	(r231167)
 @@ -1,6 +1,6 @@
  .\" $Id: mount_smbfs.8,v 1.10 2002/04/16 02:47:41 bp Exp $
  .\" $FreeBSD$
 -.Dd January 21, 2008
 +.Dd September 17, 2011
  .Dt MOUNT_SMBFS 8
  .Os
  .Sh NAME
 @@ -157,11 +157,11 @@ mount_smbfs -I samba.mydomain.com //gues
  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
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
