If you want to get one Ubuntu box talking to another and have the shares mounted, then this is what you do.
Say that Box1 has a Downloads folder that you’d like to have available on Box2. Follow these steps:
- On Box2, apt-get install smbfs
- On Box2, create a mount point (e.g. /media/Downloads) and edit
- Add the line
//Box1/Downloads /media/Downloads smbfs credentials=/etc/samba/.cred-file,gid=users,dmask=775,uid=USERNAME 0 0
/etc/samba/.cred-fileand add the lines:
obviously replacing with the correct values.
sudo mount -a
You should be sorted.