autofs, automount, auto.master and mounting samba shares
By jeltsch on Mon, 05/21/2007 - 21:27First I added a symbolic link to /etc/init.d/rc5.d/:
cd /etc/init.d/rc5.d sudo ln -s ../autofs S21autofs
Then I added to the /etc/auto.master the following line:
/media/automounts /etc/auto.smbmounts
Then I created the file auto.smbmounts with the following content:
michael_msbl.helsinki.fi -fstype=smbfs,username=michael,password=## ://paula/michael
Then I created the mountpoint:
sudo mkdir /media/automounts/michael_msbl.helsinki.fi
Then I activated the autofs daemon: