From owner-freebsd-bugs Thu Jan 24 19:20:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4F34637B41B for ; Thu, 24 Jan 2002 19:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0P3K0S56555; Thu, 24 Jan 2002 19:20:00 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 72FBB37B400 for ; Thu, 24 Jan 2002 19:19:00 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0P3J0C56428; Thu, 24 Jan 2002 19:19:00 -0800 (PST) (envelope-from nobody) Message-Id: <200201250319.g0P3J0C56428@freefall.freebsd.org> Date: Thu, 24 Jan 2002 19:19:00 -0800 (PST) From: Troy Compton To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/34247: auto mount smbfs in /etc/fstab AFTER network startup (a la NFS) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34247 >Category: misc >Synopsis: auto mount smbfs in /etc/fstab AFTER network startup (a la NFS) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 24 19:20:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Troy Compton >Release: 4.5-RC (#3) >Organization: >Environment: FreeBSD corellia.tacsoft.com 4.5-RC FreeBSD 4.5-RC #0: Thu Jan 242 0:20:22 EST 2002 root@corellia.tacsoft.com:/usr/obj/usr/src/sys/CORELLIA i386 >Description: Similar to NFS file systems defined for automatic mounting in /etc/fstab, smbfs file systems must be mounted after the network has been started. >How-To-Repeat: 1) Create /etc/nsmb.conf to contain the information necessary to connect to the SMB share (including the password). 2) chown root:wheel /etc/nsmb.conf chmod 600 /etc/nsmb.conf (password in clear text!) 3) Add an entry to /etc/fstab defining the mount point and the SMB share 4) Reboot. >Fix: patch rc rc.smbfs.diff ---------------------- 197,198c197,198 < # otherwise mount everything except nfs filesystems. < mount -a -t nonfs --- > # otherwise mount everything except nfs & smbfs filesystems. > mount -a -t nonfs,smbfs 311a312,320 > # Mount smbfs filesystems if present in /etc/fstab > case "`mount -d -a -t smbfs 2> /dev/null`" in > *mount_smbfs*) > echo -n 'Mounting SMB file systems:' > mount -a -t smbfs > echo '.' > ;; > esac > >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message