Ubuntu – Windows cannot access Samba server – “not accessible”

16.04permissionssambawindows

I created the secure Samba server. But in Windows when I try to use it, Windows gives me an error:

\\UBUNTU\folder is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permission. Multiple connections to a server or shared resource by the same user, using more than one user name are not allowed. Disconnect all previous connections to the server or shared resource and try again.

Best Answer

sudo apt-get install samba
sudo nano /etc/samba/smb.conf

Put at the end:

comment = Ubuntu File Server Share
   path = /home/ubuntu/ubuntu # The path to the folder
   browsable = yes
   guest ok = yes
   read only = no
   create mask = 7777

Then create folder:

sudo mkdir -p /home/ubuntu/ubuntu
sudo chown nobody.nogroup /home/ubuntu/ubuntu

Then try the Ubuntu IP address from Windows