Samba: session setup failed: NT_STATUS_LOGON_FAILURE
Posted
by
stivlo
on Server Fault
See other posts from Server Fault
or by stivlo
Published on 2011-05-06T07:22:47Z
Indexed on
2012/08/31
9:40 UTC
Read the original article
Hit count: 677
I tried to set up Samba with "unix password sync", but I still get logon failure. I am running Ubuntu Natty Narwhal.
$ smbclient -L localhost
Enter stivlo's password:
session setup failed: NT_STATUS_LOGON_FAILURE
Here is my /etc/samba/smb.conf
[global]
workgroup = obliquid
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
[www]
path = /var/www
browsable = yes
read only = no
create mask = 0755
After modifying I restarted the servers:
$ sudo restart smbd
$ sudo restart nmbd
However I still can't logon with my Unix username and password.
Can anyone please help? Thank you in advance!
© Server Fault or respective owner