I've set up a Samba server on Linux (Ubuntu 17.04) to share files with my Windows computer.
The server is up and running, but what's strange is that I can only access the shared folder using the
smbclient command from my Windows Subsystem for Linux environment:
However, when I use the Windows command line tools for Samba (which is the same as adding a drive map from Explorer):
net use \\xxx.xxx.xx.xx\share Z:
After putting the same username/password as with the
smbclient, I get an error message:
System error 5 has occurred. Access is denied.
Nearly everything from my
smb.conf is by default, and the only configurations I added were:
hosts allow = xxx.xx.xx.xx/24 127.0.0.1
[share] path = /my/share/folder valid users = my_user read only = no writable = yes browsable = yes guest ok = no
(I also have used
smbpasswd to set up the username and enabled samba in ufw )