Page 1 of 1

Samba Server Not Appearing

Posted: 2020/01/02 00:59:09
by jjrowan
Recent install of CentOS 8 replacing CentOS 5 and 6. The /etc/samba/smb.conf is similar to that from the Cent 5 and 6 servers. On Windows 10 computers clicking Network in explore window the Cent 5 and 6 servers appear in the right window, the Centos 8 server does not appear.

I can access the Cent 8 server by specifying \\ (it's IP address) and then all the shares appear.

I disabled samba on the Cent 5 and 6 servers. Now only 3 of my PCs appear in the explore window where previously my 8 computers would appear in addition to the Cent 5 and 6 servers.

I made the 8 server's smb.conf identical to the 5 or 6 and restarted samba but then the Windows computers couldn't attach, they were prompted for the password, entered but couldn't connect. I've reverted the Cent 8 smb.conf so my computers can connect by specifying \\ I want to be able to see the name of the server in the right pane and click on it rather than specifying ip address. Suggestions?

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.

workgroup = mygroup
server string = Samba Version %v
interfaces = lo, enp3s0f0

security = user
passdb backend = tdbsam
domain logons = Yes
preferred master = Yes
domain master = Yes
hosts allow = 127.,
local master = Yes
preferred master = Yes

Re: Samba Server Not Appearing

Posted: 2020/01/02 08:31:51
by KernelOops
Is it possible that you are blocking samba name service port? make sure that ports 137,138,139,445 are open from firewalld (and the correct TCP or UDP type, or both).

Also make sure all relevant services nmb/smb are running.

Re: Samba Server Not Appearing

Posted: 2020/01/02 12:42:30
by jjrowan
Thank you. I'd fat-fingered the ipaddress typing 3.87 instead of 3.7, changed to correct address, restarted nmb and it's working.