samba error: “session setup failed: NT_STATUS_LOGON_FAILURE” when adding new user

it really strange when i use samba for the first time this error not happened.

but when i add new user to share samba it didn’t work, it continue to produce “session setup failed: NT_STATUS_LOGON_FAILURE”

i tried both using straight connection smb://server/sharename or by smbclient connection.

this error because of failed connection LAN/hosts problem, wrong user name or password, or because of not adding domain name/workgroup (if you tried to connect to windows share).

it turn out my problem is that the password from linux password is not synced with samba password, so you need to add it using the command:

smbpasswd -a [user name]

then you fill in the password.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s