Samba users cannot change their own passwords. The password can only be changed using root account using the command

smbpasswd -a <username>

But I want users be able to change their passwords by their own. When password is tried to changed using a non-root account I get the below error message.

$ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
Could not connect to machine NT_STATUS_LOGON_FAILURE
Failed to change password for user1

Any reasons for this? How can I fix this?

  • You need to start the smbd daemon on the local machine. Or use option -r somemachine to connect to a remote server that holds the passwords. – meuh Oct 28 '15 at 8:45

Every authentication method is generally checked against the Domain. As smb.conf is specified as "security=ads", so when a user authentication is checked it's always checked against the Domain first and when the user is reported as "Not Found or logon failure" it will not proceed with next method i.e sam (local user database).

Specify the following line in Global Section of smb.conf

 auth methods = guest sam_ignoredomain winbind:ntdomain

Then, restart smb service

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.