Cannot log in with Samba

Tips and Tricks for Networking

Moderator: jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Cannot log in with Samba

Postby viking60 » 27 Apr 2015, 23:46

I have set up samba. Read all about it and I have done the usual somersaults and scratched my head with my toes.
So Finally I get everything to show up on network shares in the file manager. And there I am prompted for the Username Workgroup and password.
And there nothing is accepted :f
I have synced and converted users in webmin without any luck. Then I found a oneliner that takes care of that samba user:

Code: Select all

sudo smbpasswd -a <user name>

Here I use my regular linux user name.
Then I get prompted for a password and there I use my regular password.

Et Voila it works - I can log in to my shared stuff.
Naturally you need to check that your workgroup is the same. That your config is ok with

Code: Select all

testparm 
and reload your samba server after config changes. etc etc,
This tip is for you guys that have read the documentation and still are scratching your heads - like me. :-D

PS: This worked for me - Samba has a gift of updating breaking and fubaring so much that your problem probably is something else. :berserkf
But then again this might be your lucky day - because you visited here and got it working - like I did:
:dancer
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “Networking”