Use smbclient to add the user "joe" and enter a password.
You need a samba user who matches the Linux user. Keeping the usernames and passwords the same for users who use both windows and a share on samba would work the best for the "security = user" security model.
If you have a public share, create the directory with the same permissions as the /tmp directory.
chmod a=rwxt <directory>
The linux permissions need to allow access as well as smb.conf.
For a public writable share, where a user isn't a Linux user, you need to add the line:
map to guest = Bad User
This will result in the ownership of written files being the "nobody" user in Linux. The "nobody" user is mapped to the "guest" user in Windows.
Code:
[test]
comment = Joe's Share
path = /shares/joe
read only = no
public = yes
Make sure that the /shares/ directory has at least "rwxr-xr-x" permissions. This is what the permissions are for the /home directory. The "r-x" is needed on /shares/ to allow the user joe to enter his share.
For private access for the user "joe" change the permissions of /shares/joe/ to "rwxrwx---".
----
The error message seems to indicate a networking problem. Can you ping back and forth?
Check the samba server's firewall.
Code:
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp # NETBIOS Name Service
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp # NETBIOS Datagram Service
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp # NETBIOS Session Service
...
microsoft-ds 445/tcp # Microsoft-DS
microsoft-ds 445/udp # Microsoft-DS
These are the ports that samba uses. I started the smb and nmb services on my desktop and then scanned the open ports.
Code:
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
139/tcp open netbios-ssn
445/tcp open microsoft-ds