"smbpasswd -a user" makes samba server unavailable.

"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.

Then:
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?
smb.conf
LVL 2
itniflAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

itniflAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.