The following is the line from my fstab: //machine.domain/directorytomount /mnt/directory cifs defaults,credentials=/root/.sambapasswords 0 0
the file /root/.sambapasswords contains the username and password for the samba share: username= password= Kerry.
