Hi 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# and 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 ---------?? ? ? ? ? ?------- WORKGROUP 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 [global] dns forwarder = 8.8.8.8 netbios name = DC2-HPLTS realm = HOGANAS-PLATSLAGAREN.SE server role = active directory domain controller workgroup = HPLTS idmap_ldb:use rfc2307 = yes [netlogon] path = /var/lib/samba/sysvol/hoganas-platslagaren.se/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No [profiles] path = /samba/profiles read only = No Anders ?stling D?mmegatan 11 SE-25442 Helsingborg Sweden Phone: +46 768 716 165 Skype: anders.ostling at outlook.com
On 11/02/2021 14:16, Anders ?stling via samba wrote:> Hi > > 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# > > and > > 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?Yes, but it appears to be trying to use IPv6 instead of IPv4> > 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 > ---------?? ? ? ? ? ?------- > WORKGROUP > > Q2: ?Reconnecting with SMB1?? And Workgroup WORKGROUP? > >Samba 4.9.5 uses SMBv1 by default but from 4.11.0 the default is now SMBv2. Are you sure that the one with 'SMB1 disabled' is still running 4.9.5 ? Rowland