Linux and accessing the Windows shares

I had the problem of accessing the windows shares on my network, I’m using Ubuntu and getting inside the workgroup directory didn’t show any machines. So, I’ve found the solution which is pretty simple:

1. Samba config

[prism key=”code-samba” language=”bash”]

2. Add wins to Name Service Switch config
[prism key=”code-nsswitch” language=”bash”]

3. Restart Samba
[prism key=”code-restart” language=”bash”]

And that’s it, you should be able to access all of the shares across all of the workgroups.

Leave a Reply

Your email address will not be published. Required fields are marked *