Hi, I have Samba server configured on my Raspberry Pi 3, I don’t touched anything but it seems that not working properly in these days. Also tried to reboot(it start to works but then stops, services are running but not visible by other computers.
root@DietPi:~# service smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: active (running) since Tue 2017-05-16 02:08:43 CEST; 7h ago
Process: 14066 ExecReload=/etc/init.d/smbd reload (code=exited, status=0/SUCCESS)
Process: 1062 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/smbd.service
├─1071 /usr/sbin/smbd -D
├─1084 /usr/sbin/smbd -D
├─2753 /usr/sbin/smbd -D
└─2856 /usr/sbin/smbd -D
May 16 07:43:55 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:07:44 DietPi systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:07:45 DietPi smbd[12607]: Reloading /etc/samba/smb.conf: smbd.
May 16 08:07:45 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:30:43 DietPi systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:30:43 DietPi smbd[13405]: Reloading /etc/samba/smb.conf: smbd.
May 16 08:30:43 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:57:13 DietPi systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:57:13 DietPi smbd[14066]: Reloading /etc/samba/smb.conf: smbd.
May 16 08:57:13 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
root@DietPi:~# service nmbd status
● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
Loaded: loaded (/etc/init.d/nmbd)
Active: active (running) since Tue 2017-05-16 02:08:44 CEST; 7h ago
Process: 1074 ExecStart=/etc/init.d/nmbd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nmbd.service
└─1092 /usr/sbin/nmbd -D
May 16 02:08:44 DietPi nmbd[1074]: Starting NetBIOS name server: nmbdinvalid permissions on directory '/var/log/samba/cores': has 0775 should be 0700
May 16 02:08:44 DietPi nmbd[1074]: Failed to create /var/log/samba/cores for user 0 with mode 0700
May 16 02:08:44 DietPi nmbd[1074]: Unable to setup corepath for nmbd: Success
May 16 02:08:44 DietPi nmbd[1074]: .
May 16 02:08:44 DietPi systemd[1]: Started LSB: start Samba NetBIOS nameserver (nmbd).
root@DietPi:~# cat /etc/samba/smb.conf
[global]
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
[dietpi]
comment = DietPi Share
path = /mnt/dietpi_userdata
browseable = yes
create mask = 0775
directory mask = 0775
valid users = root
writeable = yes
[DATI200]
comment = Disco dati
path = /mnt/ab8c6eea-8424-417c-b268-5f3bdbbd153a
browseable = yes
create mask = 0775
directory mask = 0775
valid users = root
writeable = yes
[DATI1TB]
comment = Disco multimediale
path = /mnt/2f9c68e0-f8f2-401b-81e5-98488f9d7ae0
browseable = yes
create mask = 0775
directory mask = 0775
valid users = root
writeable = yes
Aside from complaints regarding log file permission, Samba appears to be running fine. Does the DietPi share work with IP/hostname?
Win = Run > //IPADDRESS/dietpi
Win = Run > //HOSTNAME/dietpi
I don’t know if it may help but every time that I’m doing something and DietPi stop services it stuck on stopping transmission-daemon service. And it’s very slow in stopping all services.