"smbpasswd -a user" makes samba server unavailable.

itnifl used Ask the Experts™
"smbpasswd -a user" makes samba server unavailable.

Previously used Debian 7 without problems. Reinstalled and set up Debian 9.

I have atttached my smb.conf. This is a fresh installation. When using the config as attached here, I can browse to my server via \\ip-address and \\netbiosname windows 10 machine, but none of the shares are available. I get a password promptwhen trying to access the shares, and then a message that I am not authorized.So then, I add the system user 'atle' to samba:
smbpasswd -a atle

This prompts me for a password twice. I enter the same password twice, all ok.

systemctl  restart smbd
systemctl  restart nmbd

Then I try to browse \\ip-address and \\netbiosname from my windows 10 machine, but no response. The server seems unavailable.
"systemctl smbd status" responds all is well. Trying to list shares from the command prompt with smbclient to \\ip-address works fine.

I then perform:
smbpasswd -x atle
systemctl restart smbd
systemctl restart nmbd

Now I can browse \\ip-address and \\netbiosname from my windows 10 machine again.

So, what is going on here? How to fix?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®


After I added this to the top of my Global section, I can now add a user with smbpasswd and browse via \\netbiosname, but not \\ip-address. I still can't access any of the shares.

lanman auth = no
ntlm auth = yes
client lanman auth = no

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial