cant login with my samba password only with my linux password
Tom H
tomh0665 at gmail.com
Thu Dec 23 16:38:47 UTC 2010
On Thu, Dec 23, 2010 at 8:57 AM, Hartmut <freemlist at googlemail.com> wrote:
>
> I have a strange problem with my samba server. When I try to connect
> with my (Windows)client and samba ask for the password, it's only
> accepting my linux-user password, not my samba-user password (set with
> smbpasswd).
>
> And now the strange about it. When i change my sambapassword with
> smbpasswd, and try to login from my client, then the samba-user password
> is accepted. But after a reboot of my samba server, the server accepts
> only the linux-user password. I have to (re)set the samba-user password
> again with smbpasswd and only after that, I can login with the
> samba-user password.
>
> Is there something wrong with my smb.conf (see below)?
>
> [global]
> security = user
> encrypt passwords = true
> passdb backend = tdbsam
> obey pam restrictions = yes
> unix password sync = no
> pam password change = no
Not 100% sure of 1 and 2 below:
1. When you run smbpasswd as a user, the password is passed to a
running smbd because smbpasswd isn't setuid root and the samba
password db isn't updated.
2. If you have a valid unix username and password and an enabled smb
username with a diffferent password, you can connect to a samba share
with your unix password.
Questions:
A. Why don't you sync unix and samba passwords?
B. If you don;t want to do A above, why not change the samba
password(s) with pdbedit?
More information about the ubuntu-users
mailing list