Samba doesn't works after DietPi update

Hi, I recently update my DietPi installation and since the update, it seems that Samba stopped working. Is not possible to connect to the server from any device.

This is the logfile:

root@DietPi:/var/log/samba# cat log.smbd
[2019/01/02 11:37:25.941586, 0] …/source3/lib/interface.c:652(load_interfaces)
WARNING: no network interfaces found
[2019/01/02 11:37:26.112198, 0] …/lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon ‘smbd’ finished starting up and ready to serve connections
[2019/01/02 11:42:27.664780, 0] …/source3/lib/interface.c:652(load_interfaces)
WARNING: no network interfaces found
[2019/01/02 11:42:27.698783, 0] …/lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon ‘smbd’ finished starting up and ready to serve connections
[2019/01/02 11:43:03.642688, 0] …/source3/lib/access.c:338(allow_access)
Denied connection from 192.168.1.12 (192.168.1.12)
[2019/01/02 11:43:03.643163, 0] …/source3/lib/access.c:338(allow_access)
Denied connection from 192.168.1.12 (192.168.1.12)
[2019/01/02 11:43:03.648503, 0] …/source3/lib/access.c:338(allow_access)
Denied connection from 192.168.1.12 (192.168.1.12)

I don’t know why, all was working before the update. This is the smb.conf:

workgroup = WORKGROUP
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = no
syslog = 0

panic action = /usr/share/samba/panic-action %d

security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes

passwd program = /usr/bin/passwd %u
passwd chat = Enter\snew\s\spassword:* %n\n Retype\snew\s\spassword:* %n\n password\supdated\ssuccessfully .
pam password change = yes
map to guest = bad user

load printers = no
printcap name = /dev/null
disable spoolss = yes

hosts allow = 10.66.0.0/24 10.8.0.0/24 127.0.0.1
interfaces = 10.66.0.0/24 10.8.0.0/24

[dietpi]
comment = DietPi Share
path = /mnt/dietpi_userdata
browseable = yes
create mask = 0775
directory mask = 0775
valid users = dietpi
writeable = yes
max connections = 8

[DATI200]
comment = Disco dati 200GB
path = /mnt/2f9c68e0-f8f2-401b-81e5-98488f9d7ae0
available = yes
browseable = yes
create mask = 0775
directory mask = 0775
valid users = dietpi
writeable = yes
max connections = 8
read only = no

[DATI80]
comment = Disco dati 80GB
path = /mnt/ab8c6eea-8424-417c-b268-5f3bdbbd153a
available = yes
browseable = yes
create mask = 0775
directory mask = 0775
valid users = dietpi
writeable = yes
max connections = 8
read only = no

Thank you for your help. :slight_smile:

crik91
You limited access via:

hosts allow = 10.66.0.0/24 10.8.0.0/24 127.0.0.1
interfaces = 10.66.0.0/24 10.8.0.0/24

The client IP that you try to connect with is 192.168.1.12, so not within the range of allowed hosts.
Try to set the following to grant access for all 192.168.1.X IPs/hosts:

hosts allow = 10.66.0.0/24 10.8.0.0/24 127.0.0.1 192.168.1.0/24