Samba is not meant for use with two linux machine. It was design to share files between linux and windows.
For linuxs machine there are several other option you can use, one of them is nfs.
This link might help you in setting up nfs:
http://www.linuxhelp.net/guides/nfs/