veleek
Posts: 1
Joined: Thu Jan 31, 2019 6:48 am

Unable to access Samba shares using pi hostname.

Thu Jan 31, 2019 7:02 am

I have a Pi with Samba installed and working. I'm able to browse and modify the samba shares that I have configured from a Windows PC by using the IP address of the Pi (e.g. \\192.168.123.123\sharename).

I recently configured installed and configured the stuff I needed to enable WINS in /etc/nsswitch.conf. So now I'm able to ping my pi using it's hostname (raspberrypi), and I can SSH into it successfully using the hostname, but if I attempt to connect to \\raspberrypi\sharename it asks for credentials and won't connect.

Any thoughts on what I need to configure to get it working?

hortimech
Posts: 431
Joined: Wed Apr 08, 2015 5:52 pm

Re: Unable to access Samba shares using pi hostname.

Thu Jan 31, 2019 9:43 am

What exactly did you set in /etc/nsswitch.conf ?
Do you have a wins server ?
What is in your smb.conf (without any commented lines) ?

Return to “Troubleshooting”