Bug 160775

Summary: [patch] provide a better example for passwordless guest mounting
Product: Documentation Reporter: Enji Cooper <ngie>
Component: Books & ArticlesAssignee: Xin LI <delphij>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Enji Cooper freebsd_committer freebsd_triage 2011-09-16 22:40:06 UTC
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.

Fix: Patch attached with submission follows:
Comment 1 Xin LI freebsd_committer freebsd_triage 2011-09-16 22:57:52 UTC
Responsible Changed
From-To: freebsd-bugs->delphij

Take.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-09-17 23:17:46 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"
Comment 3 Xin LI freebsd_committer freebsd_triage 2011-09-17 23:17:54 UTC
State Changed
From-To: open->patched

Patch applied to -HEAD, MFC reminder.
Comment 4 Xin LI freebsd_committer freebsd_triage 2012-02-07 22:31:25 UTC
State Changed
From-To: patched->closed

Committed, thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2012-02-07 22:31:36 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"