You are not logged in.

#1 2018-05-06 13:27:59

cuicui-369
Banned
Registered: 2018-04-02
Posts: 18

Samba stop working [SOLVED]

While updating my system days ago, I receive notice that my samba directory (believe it was /var/lib/samba) was not properly set, but I didn't touch it.  Today, I try to connect to my samba and I receive Failed to retrieve share list from server: Connection refused.  It was working before, and I didn't touch the configuration file (smb.conf) so I suppose that should be a permission issue.  I would try to see if I can found back the warning message from pacman while updating samba.

warning: directory permissions differ on /var/lib/samba/private
filesystem: 755  package: 700

Should I change to 700 the chmod of /var/lib/samba/private ?

Last edited by cuicui-369 (2018-05-06 16:51:31)

Offline

#2 2018-05-06 13:31:52

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Samba stop working [SOLVED]

What is the output of testparm?
Edit:
Also please post the command you used on the client and its full output.  Please also post the server log for the session and for startup.

Last edited by loqs (2018-05-06 13:35:32)

Offline

#3 2018-05-06 13:55:03

cuicui-369
Banned
Registered: 2018-04-02
Posts: 18

Re: Samba stop working [SOLVED]

testparm: https://pastebin.com/9eDtbyVQ

smbclient -L 192.168.0.102
Connection to 192.168.0.102 failed (Error NT_STATUS_CONNECTION_REFUSED)

smbclient -L 192.168.0.100
Connection to 192.168.0.100 failed (Error NT_STATUS_CONNECTION_REFUSED)

I usually use thunar to get access to my samba share, put it give this error message: Failed to retrieve share list from server: Connection refused.

Failed to restart smbd.service: Unit smbd.service not found.
[user@hostname log]$ sudo systemctl restart smbd

[user@hostname log]$ sudo systemctl restart nmbd
Failed to restart nmbd.service: Unit nmbd.service not found.

[user@hostname log]$ sudo systemctl start smbd
Failed to start smbd.service: Unit smbd.service not found.
[user@hostname log]$ sudo systemctl start nmbd
Failed to start nmbd.service: Unit nmbd.service not found.

Offline

#4 2018-05-06 13:59:44

jonno2002
Member
Registered: 2016-11-21
Posts: 922

Re: Samba stop working [SOLVED]

from the arch wiki:

Starting services
Note: In samba 4.8.0-1, the units were renamed from smbd.service and nmbd.service to smb.service and nmb.service.

To provide basic file sharing through SMB start/enable smb.service and/or nmb.service services. See the smbd(8) and nmbd(8) man pages for details, as the nmb.service service may not always be required.

Offline

#5 2018-05-07 23:52:41

rogerthat
Member
Registered: 2016-11-15
Posts: 56

Re: Samba stop working [SOLVED]

I got the same warning while updating my system today with pacman:

upgrading samba
warning: directory permissions differ on /var/lib/samba/private/
filesystem: 755  package: 700

Why is this suddenly appearing and how to resolve the issue??

Offline

#6 2018-05-08 00:51:39

jonno2002
Member
Registered: 2016-11-21
Posts: 922

Re: Samba stop working [SOLVED]

sudo chmod 700 /var/lib/samba/private

https://wiki.archlinux.org/index.php/Fi … ric_method

Last edited by jonno2002 (2018-05-08 01:01:18)

Offline

#7 2018-05-08 00:55:08

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Samba stop working [SOLVED]

Perhaps due to this upstream change https://github.com/samba-team/samba/com … 3d1dcd2ae3

Offline

Board footer

Powered by FluxBB