[Bug 476578] [NEW] After upgrade to karmic samba ignored /etc/samba/smbpasswd
Romano Giannetti
romano.giannetti at gmail.com
Fri Nov 6 15:24:19 GMT 2009
Public bug reported:
Binary package hint: samba
I had a setup with samba shares that where accessed with a stanza in
/etc/samba/smb.conf like that:
[myhome]
comment = My Home Dir
path = /home/myuser
writable = yes
valid users = myuser
and it worked. I had a
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
in my smb.conf. It all worked in Jaunty when accessing the shares
through the VBox virtualmachines I had, running Windows XP. After the
upgrade, the shares where unreacheable with the following error:
check_ntlm_password: Authentication for user [romano] -> [romano]
FAILED with error NT_STATUS_WRONG_PASSWORD
After a bit of searching, I discovered that the file
/etc/samba/smbpasswd is ignored. Look at that:
# strace -f smbpasswd -e myuser |& grep smbpasswd
execve("/usr/bin/smbpasswd", ["smbpasswd", "-e", "myuser"], [/* 23 vars */]) = 0
No access to /etc/samba/smbpasswd at all!
I just did a smbpasswd -a myuser and the samba shares work again as
before.
I am filing this bug albeit I have a good answer to it in the hope it
could be useful for someone.
** Affects: samba (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Binary package hint: samba
I had a setup with samba shares that where accessed with a stanza in
/etc/samba/smb.conf like that:
[myhome]
- comment = My Home Dir
- path = /home/myuser
- writable = yes
- valid users = myuser
+ comment = My Home Dir
+ path = /home/myuser
+ writable = yes
+ valid users = myuser
and it worked. I had a
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
- in my smb.conf. It all worked in Jaunty when accessing through the VBox
- virtualmachines I had, running Windows XP. After the upgrade, the shares
- where unreacheable with the following error:
+ in my smb.conf. It all worked in Jaunty when accessing the shares
+ through the VBox virtualmachines I had, running Windows XP. After the
+ upgrade, the shares where unreacheable with the following error:
- SMB: check_ntlm_password: Authentication for user [romano] ->
- [romano] FAILED with error NT_STATUS_WRONG_PASSWORD
+ check_ntlm_password: Authentication for user [romano] -> [romano]
+ FAILED with error NT_STATUS_WRONG_PASSWORD
After a bit of searching, I discovered that the file
/etc/samba/smbpasswd is ignored. Look at that:
- # strace smbpasswd -e myuser |& grep smbpasswd
+ # strace -f smbpasswd -e myuser |& grep smbpasswd
execve("/usr/bin/smbpasswd", ["smbpasswd", "-e", "myuser"], [/* 23 vars */]) = 0
+
+ No access to /etc/samba/smbpasswd at all!
I just did a smbpasswd -a myuser and the samba shares work again as
before.
I am filing this bug albeit I have a good answer to it in the hope it
could be useful for someone.
--
After upgrade to karmic samba ignored /etc/samba/smbpasswd
https://bugs.launchpad.net/bugs/476578
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
More information about the Ubuntu-server-bugs
mailing list