First thing is to clarify your question:
but can't access the shared directory from the other computer
You can't go from Linux to Windows, from Windows to Linux, or both? Can you see any files? Browse the tree? Get a login box on Windows? What version of Samba? On what linux distro?