[Samba] Samba browsing question

Anders Östling anders.ostling at gmail.com
Thu Feb 11 14:16:13 UTC 2021


On an Debian 10/4.595 samba member server, I get the following output using smbclient

root at fs1-hplts:/var/log/samba# smbclient -L fs1-hplts -N -UAdministrator

	Sharename       Type      Comment
	---------       ----      -------
	Users           Disk      User home directories
	Documents       Disk      Shared documents
	Setup           Disk      Setup applications
	Legacy          Disk      Legacy applications (DOS & 16-bit)
	Robotics        Disk      Industrial systems
	IPC$            IPC       IPC Service ("Fileserver Samba4 fs1-hplts")
SMB1 disabled -- no workgroup available
root at fs1-hplts:/var/log/samba#


root at fs1-hplts:/var/log/samba# smbclient -L localhost -N -UAdministrator
session setup failed: NT_STATUS_LOGON_FAILURE

root at fs1-hplts:/var/log/samba# ping localhost
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.050 ms

Q1: Is the fact that localhost does not respond to a listing request a potential problem?

Also, same command on an AD DC that have a couple of shares gives this

root at dc2-hplts:/var/log/samba# smbclient -L localhost -N
Anonymous login successful

	Sharename       Type      Comment
	---------       ----      -------
	netlogon        Disk
	sysvol          Disk
	profiles        Disk
	IPC$            IPC       IPC Service (Samba 4.9.5-Debian)
Reconnecting with SMB1 for workgroup listing.
Anonymous login successful

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------

Q2: “Reconnecting with SMB1”? And Workgroup WORKGROUP?

The AD DC config file looks like this

root at dc2-hplts:/var/log/samba# cat /etc/samba/smb.conf
# Global parameters
	dns forwarder =
	netbios name = DC2-HPLTS
	server role = active directory domain controller
	workgroup = HPLTS
	idmap_ldb:use rfc2307 = yes

	path = /var/lib/samba/sysvol/hoganas-platslagaren.se/scripts
	read only = No

	path = /var/lib/samba/sysvol
	read only = No

	path = /samba/profiles
	read only = No

Anders Östling

Dämmegatan 11
SE-25442 Helsingborg
Phone: +46 768 716 165
Skype: anders.ostling at outlook.com

More information about the samba mailing list