Automounting SMB filesystems using autofs
Because I just know I’m going to need this again in the future:
In /etc/auto.master:
/misc /etc/auto.misc –timeout=60
In /etc/auto.misc:
drive -fstype=smbfs,credentials=/etc/auto.smbcredentials ://host/share
In /etc/auto.smbcredentials:
username=username
password=xxxxxxxxx
Then…
# service autofs restart
and cding to /misc/drive should automount \host\share.