From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 16 21:40:07 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C3A110656EA for ; Fri, 16 Sep 2011 21:40:07 +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 1F17B8FC1A for ; Fri, 16 Sep 2011 21:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8GLe7pw039609 for ; Fri, 16 Sep 2011 21:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8GLe6rf039606; Fri, 16 Sep 2011 21:40:06 GMT (envelope-from gnats) Resent-Date: Fri, 16 Sep 2011 21:40:06 GMT Resent-Message-Id: <201109162140.p8GLe6rf039606@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C309106564A for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/160775: [patch] provide a better example for passwordless guest mounting X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2011 21:40:07 -0000 >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: