[clug] need help with samba

Eyal Lebedinsky eyal at eyal.emu.id.au
Sun Jul 12 09:58:23 UTC 2015


I recently noticed that I cannot anymore access samba shares on one Linux (e4 is f22)
from another (e7 is f19) where I was always able to do so. This may have started when
I upgraded e4 (f19->f22).

I expect a minor config change? I reinstalled samba to no avail. Maybe another config
file required now? I still have /etc/samba/smb.conf.

To my untrained eyes there is no failure in the relevant logs.

The smb and nmb services are running
====================================

[eyal at e4:~]$ systemctl status smb
* smb.service - Samba SMB Daemon
    Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
    Active: active (running) since Sun 2015-07-12 10:56:16 AEST; 8h ago
  Main PID: 30577 (smbd)
    Status: "smbd: ready to serve connections..."
    CGroup: /system.slice/smb.service
            |-30577 /usr/sbin/smbd
            `-30581 /usr/sbin/smbd

[eyal at e4:~]$ systemctl status nmb
* nmb.service - Samba NMB Daemon
    Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled)
    Active: active (running) since Sun 2015-07-12 10:56:13 AEST; 8h ago
  Main PID: 30507 (nmbd)
    Status: "nmbd: ready to serve connections..."
    CGroup: /system.slice/nmb.service
            `-30507 /usr/sbin/nmbd

Looking at the server on e4 I see
=================================

[eyal at e4:~]$ smbclient -L e4 -Uguest
Enter guest's password:
Domain=[LEBEDINSKY] OS=[Windows 6.1] Server=[Samba 4.2.2]

         Sharename       Type      Comment
         ---------       ----      -------
         data            Disk      e4-data
         IPC$            IPC       IPC Service (Samba Server Version 4.2.2)
         HP_LaserJet_4P_e7 Printer   HP LaserJet 4P
         Brother-HL3045CN Printer   Brother HL3045CN
Domain=[LEBEDINSKY] OS=[Windows 6.1] Server=[Samba 4.2.2]

         Server               Comment
         ---------            -------
         E4                   Samba Server Version 4.2.2

         Workgroup            Master
         ---------            -------
         LEBEDINSKY           E4

But from e7
===========

[eyal at e7:~]$ smbclient -L e4 -Uguest
Enter guest's password:
Connection to e4 failed (Error NT_STATUS_HOST_UNREACHABLE)

Locally there is no mention of E4
=================================

[eyal at e7:~]$ smbclient -L e7 -Uguest
Enter guest's password:
Domain=[LEBEDINSKY] OS=[Unix] Server=[Samba 4.0.21]

         Sharename       Type      Comment
         ---------       ----      -------
         data            Disk      e7-data
         data1           Disk      e7-data1
         data2           Disk      e7-data2
         backup-disk     Disk      e7-backup-disk
         backup          Disk      e7-backup
         www             Disk      e7-www
         download        Disk      e7-download
         iso             Disk      e7-iso
         IPC$            IPC       IPC Service (Samba Server Version 4.0.21)
         HP-LaserJet-4P  Printer   HP LaserJet 4P
         Brother_HL-3045CN_series Printer   Brother HL-3045CN series
Domain=[LEBEDINSKY] OS=[Unix] Server=[Samba 4.0.21]

         Server               Comment
         ---------            -------
         E7                   Samba Server Version 4.0.21
         EL                   Samsung Ativ Book 9  i7

         Workgroup            Master
         ---------            -------
         LEBEDINSKY           E7

But when I stop/start the services on e4 I can, for a short time, see E4 listed on E7
servers list (but no shares listed)
===================================

[eyal at e7:~]$ smbclient -L e7
Enter eyal's password:
Domain=[LEBEDINSKY] OS=[Unix] Server=[Samba 4.0.21]

Sharename Type Comment
--------- ---- -------
data Disk e7-data
data1 Disk e7-data1
data2 Disk e7-data2
backup-disk Disk e7-backup-disk
backup Disk e7-backup
www Disk e7-www
download Disk e7-download
iso Disk e7-iso
IPC$ IPC IPC Service (Samba Server Version 4.0.21)
HP-LaserJet-4P Printer HP LaserJet 4P
Brother_HL-3045CN_series Printer Brother HL-3045CN series
Domain=[LEBEDINSKY] OS=[Unix] Server=[Samba 4.0.21]

Server Comment
--------- -------
E4 Samba Server Version 4.2.2
E7 Samba Server Version 4.0.21
EL Samsung Ativ Book 9 i7

Workgroup Master
--------- -------
LEBEDINSKY E7

[eyal at e7:~]$ smbclient -L e4
Enter eyal's password:
Connection to e4 failed (Error NT_STATUS_HOST_UNREACHABLE)


EL is another windows machine that also is unable to see E4 but can see E7
without trouble. Otherwise I can always ping and ssh e7 from e4 and vv..

[eyal at e4:~]$ smbclient --version
Version 4.2.2

[eyal at e7:~]$ smbclient --version
Version 4.0.21

TIA

-- 
Eyal Lebedinsky (eyal at eyal.emu.id.au)



More information about the linux mailing list