Date: Tue, 5 Nov 2002 11:10:59 -0800 (PST) From: Rotaru Razvan <roti_343@yahoo.com> To: Andrew Brampton <andrew@bramp.freeserve.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: mounting smbfs at boot time Message-ID: <20021105191059.73694.qmail@web11206.mail.yahoo.com> In-Reply-To: <018c01c284f5$8971b660$0300a8c0@andrew>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, well when I said ~/.nsmbrc i meant also /root/.nsmbrc. Still i doesn't work for me, but then again my method with the daemon-like startup script in /usr/local/etc/rc.d is unusual. /usr/local/etc/nsmb.conf doesn't even work work even with a normal mount_smbfs command with -N. Can you tell me how do you mount your shares at boot time? or at least can i see your /etc/fstab file ? Regards, Razvan --- Andrew Brampton <andrew@bramp.freeserve.co.uk> wrote: > I'm a freeBSD newbie, but I found a solution to your problem, I > appear to > have a /root/.nsmbrc file with passwords in which are used to mount > my > shares at boot time. But if you can't use this file then try > /usr/local/etc/nsmb.conf which is a default of some kind. > > Hope this helps :) > Andrew > ----- Original Message ----- > From: "Rotaru Razvan" <roti_343@yahoo.com> > To: <freebsd-questions@freebsd.org> > Sent: Tuesday, November 05, 2002 5:36 PM > Subject: mounting smbfs at boot time > > > > 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 > > > __________________________________________________ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021105191059.73694.qmail>