Samba headaches

So I installed samba from the app store, and I can not see the default shares on my windows computers, so I used apt-get to install smbclient to check, and got this.

osmc@osmc:/etc/samba$ smbclient -L 192.168.1.126
Enter osmc's password:
Connection to 192.168.1.126 failed (Error NT_STATUS_CONNECTION_REFUSED)
osmc@osmc:/etc/samba$ smbclient -L localhost
Enter osmc's password:
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
osmc@osmc:/etc/samba$ smbclient -L 0
Enter osmc's password:
Connection to 0 failed (Error NT_STATUS_UNSUCCESSFUL)
osmc@osmc:/etc/samba$ iptables -L

I check the log files at /var/log/samba/log.smb and nmb and they show no error messages. I am pulling out what little hair I have left trying to get this to work. Any ideas/help would be greatly appreciated.

You wouldn’t need to install samba to see shares on a networked Windows PC. I usually set up the workgroup in System|services (you need Advanced or Expert set) to see this, I think.

If you’re talking about shares on your Pi running OSMC being seen from Windows, then it is a known weakness that Windows doesn’t often show them, BUT, if you get up Explorer in Windows (NOT Internet Explorer), and put \ \192.168.1.126 in the address bar and hit return (if that was the Pi IP address), you should see them.
Derek

If valid users is provided in smb.conf cross check the smbpasswd
Check the hosts file.

Avoid Homegroups.

Sam

1 Like

I agree - even in Windows you can have problems, especially with older versions.
Derek

Thanks, after some more work I managed to get to see the shares.

1 Like

can we learn what you did to see them or is it goverment secret?

Is what I did, I marked it as the solution in the thread too. =)

damn. i am still trying for this. i have 3 linux installations and they appear normally but i haven’t manage to with raspberry.

and by the way man really thank you for the answer (even if from my stupidity i never saw the marked solution.)

this might help you, [SOLVED] Ubuntu/Samba not showing in Win7 Network Places, but accesable via \\server\sharename

1 Like

done that already. And i have already tried with both dhcp server and static ip (right now working with static).

Unfortunattely no go for me. the only way up to now is
\ \ip_address
or
\ \hostname

another option is NFS, you could just map the shares you want, and not have to worry about finding them. I use NFS to map my media shares to my other HTPCs, but samba for accessing the rest of the OS to copy file between machines, that I can’t use scp

not a bad idea at all. thanks