From owner-freebsd-questions Tue Nov 5 9:36:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CFAB37B401 for ; Tue, 5 Nov 2002 09:36:24 -0800 (PST) Received: from web11208.mail.yahoo.com (web11208.mail.yahoo.com [216.136.131.190]) by mx1.FreeBSD.org (Postfix) with SMTP id E41E643E8A for ; Tue, 5 Nov 2002 09:36:23 -0800 (PST) (envelope-from roti_343@yahoo.com) Message-ID: <20021105173623.36321.qmail@web11208.mail.yahoo.com> Received: from [141.85.0.72] by web11208.mail.yahoo.com via HTTP; Tue, 05 Nov 2002 09:36:23 PST Date: Tue, 5 Nov 2002 09:36:23 -0800 (PST) From: Rotaru Razvan Subject: mounting smbfs at boot time To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Well here is what i want to ask: I want to mount a smbfs at boot time. Editing /etc/fstab won't do because filesystems are mounted before network initalisation. The noauto option doesn't help (it doesn't mount at boottime, neither on 'mount -a' ; by the way why should anyone enter a filesystem in fstab with the noauto option?!?! doesn't make any sense). Next thing i tried is to make a daemon-like startup script (in /usr/local/etc/rc.d ) that actually doesn't start any daemon, but mounts my partition when called with 'start' parameter and unmounts when called with 'stop' parameter. The problem is i have to call in this script a mount_smbfs command with the -N option (it should not ask for my smb password on boot time). Well with this option mount_smbfs looks in ~/.nsmbrc for a password. Apparently on boot time (when initializing local services) the deamon startup scripta do not run as root (i doubt they run as any user that has a home directory) so there is no way of supplying this .nmbrc file to mount_smbfs. Well for now am i out of ideas. Maybe you have a more simple solution. Thanks anyway for the attention. Razvan __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message