cant login with my samba password only with my linux password

Hartmut freemlist at googlemail.com
Thu Dec 23 17:03:51 UTC 2010


On Thu, Dec 23, 2010 at 5:38 PM, Tom H <tomh0665 at gmail.com> wrote:
> 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
>

Hi Tom,

thank you for your hint. See answers below.

> 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.

I tried it as user and as root, both the same result.

> 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.

The connect with the unix password works, but i like to connect with
my samba password.

> Questions:
>
> A. Why don't you sync unix and samba passwords?

I know this feature, but i like to have different passwords for the
linux and the samba user.

> B. If you don;t want to do A above, why not change the samba
> password(s) with pdbedit?

How can i do that with pdbedit? I know that tool, but i don't know how
to change the password with pdbedit. What's the right parameter for
that? Haven't found that at the man page. Maybe I haven't seen the
wood for the trees? :)

Greetings
Hartmut




More information about the ubuntu-users mailing list