Quantcast
Channel: Active questions tagged password - Ask Ubuntu
Viewing all articles
Browse latest Browse all 333

Can't login to Samba share with any user other than my own user

$
0
0

I've followed the usual steps for adding a new user to Samba:

  • create new Linux user with useradd [user]
  • set its password with passwd [user]
  • set its Samba password with smbpasswd -a [user]

But when I try to connect to my server with this user, I always get some form of "authentication failed" on the clients, and NT_STATUS_WRONG_PASSWORD in the server logs. (The password is correct, and is the same password between both the Linux and Samba users.) The same problem happens on every subsequent Linux/Samba user I try creating, and persists after several reboots.The weird part is, I can still log in to the share using my own linux user without any issues; just not with the new user(s). I've tried pretty much everything, including disabling every single security measure e.g. NTLMv1 (although i was still able to log in with NTLMv2 using my own linux user) and setting all shares to public. Could anyone help me figure this out? I can provide logs if requested.

(I'm on Xubuntu 22.04 with Samba version 4.15.5-Ubuntu)

Output of testparm -s:

Load smb config files from /etc/samba/smb.confLoaded services file OK.Weak crypto is allowedServer role: ROLE_STANDALONE# Global parameters[global]    allow insecure wide links = Yes    dns proxy = No    log file = /usr/local/samba/var/log.%m    max log size = 50    server role = standalone server    server string = Samba Server    workgroup = MYGROUP    idmap config * : backend = tdb[printers]    browseable = No    comment = All Printers    path = /usr/spool/samba    printable = Yes[depo]    comment = depo    path = /pub/    read only = No    wide links = Yes

Viewing all articles
Browse latest Browse all 333

Trending Articles