Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2003 13:14:53 -0600
From:      "Kliment Andreev" <klimenta@futurebit.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: Mount SMB share on bootup
Message-ID:  <000e01c3a7be$f1419de0$ca0112ac@vinyl.tkvbp.com>
References:  <200311101735.hAAEsKSk009294@nic.fnni.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> point is password protected (on the XP side) so I am prompted for a
> password.  How can I automate that?  Or should I create the share without
a
> password?  I am not too worried about internal security so the share could
> have no password and that would be fine.

Create a script called whatever.sh, chmod +x 755 whatever.sh and put that
script in a /usr/local/etc/rc.d.

Put the following lines in that script

#!/bin/sh
smbmount username=user password=pass and the rest of the parametars that you
are normaly using when mounting smb partition.

Mind that if your startup script for samba is samba.sh your mounting script
must start with a letter after the letter s otherwise you would mounting a
samba share without smb daemon started.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000e01c3a7be$f1419de0$ca0112ac>