In my local LAN, trying to share folders from my Linux Server to a Windows PC.
Samba daemon is listening:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 2707/smbd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2707/smbd
Samba looks well configured:
[root@localhost samba]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Downloads]"
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string = My Lil Linux Box
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
idmap config * : backend = tdb
hosts allow = 192.168., 127.
[Downloads]
comment = Downloads
path = /home/samba
read only = No
guest ok = Yes
[homes]
comment = My Home Directory
read only = No
guest ok = Yes
[printers]
path = /var/spool/samba
read only = No
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No
Firewall has added exception for Samba and Samba client. Also disabled SELinux momentarily.
Nevertheless Windows PC can't discover this server, but server actually responds pings.
Any idea why I can't reach the Linux Server?
If
\\<ip>
works and is sufficient for you, all is fine. However, your problem is that the network browsing isn't working correctly. The easiest method to get this to work is often to just make sure both server and the clients are in the same SMB workgroup.In Windows, you can setup the workgroup somewhere in the Control Panel->System -> System name or something (can't check right now). Make sure it has the same value on all machines and in your
smb.conf
in the[global]
section you have a parameterwhich obviously should be the same as on the Windows machines.