On Wed, 8 Sep 1999, �ū۾^ wrote:
> Hi everybody:
> How can i mount smbfs with autofs
Assuming you have smbfs support in your autofs installation (you need the
mount_smbfs.so autofs-module, typically in /usr/lib/autofs or
/usr/local/lib/autofs. I think RedHat6.0 may have left that one out).
You also need samba installed to get the smbmount program, if you compile
your own make sure you ./configure correctly. You should probably make
sure that mounting things works when running smbmount manually, before
trying to get the autofs configuration right.
Then you need an entry in your /etc/auto.master, mine is
/smbfs /etc/auto.smbfs
Then you need entries for the things you want to mount in the file given
in auto.master. These may look like this:
# /etc/auto.smbfs
foo -fstype=smbfs,login=urban,passwd=XXXXXX,uid=500 ://tyr/install
(and since you need to put the passwd here make sure you protect the file)
The parameters supported varies between samba versions. I use samba 2.0.4
because I haven't figured out how to do the uid thing with 2.0.5. Autofs
uses samba 1.9.x syntax, so you need something to translate that into
"2.0" syntax. Mike Warfield has a script with instructions for this at
http://www.wittsend.com/mhw/smbmount.html
Hmm, this sounds too easy, what did I miss?
/Urban