Can see samba share folders in windows but can`t access them |Linux

Question: I installed and configured samba share on Ubuntu, now from a windows machine i can see the shared folders but i can not access them, how i can resolve this?





Open terminal and run the following command to edit samba config file

sudo gedit /etc/samba/smb.conf

Look for these lines Then change

wins support = no
name resolve order = lmhosts host wins bcast

and change them to look something like this:

wins support = yes
name resolve order = wins lmhosts hosts bcast

Now restart  samba

sudo service smbd restart

And is done.

If you have any question please post it on our Q/A forum– Thanks
  • carus

    Thanks for the article! Maybe a stupid question, but should’nt the # and ; be removed in the changed smb.conf file?

  • Riq

    Unfortunately, this didn’t work. In windows I still get the “Windows cannot access \MYDRIVEFOLDER You do not have permission to access…” blah blah blah. Anything else that anyone knows of that’ll fix this?

  • Riq

    FIGURED IT OUT! Running “ls -la //MYDRIVE/FOLDER” showed me that the “//MYDRIVE” folder was owned by me, but NOT part of the sambashare usergroup! I changed this permission and BAM! everything has access! Woo-hoo!