You want to put an entry for it in /etc/fstab. For example:
//server1/public /mnt/smb smbfs defaults,credentials=/etc/samba/pub.cred 0 0
The credentials file, /etc/samba/pub.cred in this example, is readable only by root and contains any username and password required to access the share:
username=joe
password=<joe's password>
this will ensure that your samba share mounts automatically to /mnt/smb upon system boot.
|