Date: Thu, 24 Jan 2002 19:19:00 -0800 (PST) From: Troy Compton <troyc@tacsoft.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/34247: auto mount smbfs in /etc/fstab AFTER network startup (a la NFS) Message-ID: <200201250319.g0P3J0C56428@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201250319.g0P3J0C56428>