[Samba] change machine password

Tilo Lutz TiloLutz at gmx.de
Sun Jul 3 13:39:39 GMT 2005


>>Tilo Lutz schrieb:
>>>I use some programs to clone a windows workstation and
>>>duplicate it's image on other workstations.
>>>After cloning I change the workstation name and add a
>>>machine account on the samba pdc.
>>>Now I want to create a new password for the workstation
>>>account and store it.

>>>>Notebook:/etc/samba # smbpasswd -m test
>>>>Failed to set password for user test$.
>>>>Failed to modify password entry for user test$

> Am Sonntag, 3. Juli 2005 14:55 schrieb Martin Petersen:
> 
>>As far as I know You need to set a system account. smbpasswd gives this
>>error because of the missing user entry for test$ in /etc/passwd.

> So the system machine account exits but smbpasswd will not allow to 
> create the samba user account for this machine?

> After I've read Your first post again: Maybe the machine account doesn't 
> even need a password but You only need to to add the account with 
> smbpasswd -a -m test$?

No, everything is fine. I can add and remove workstations without problems.
But as soon as I try to change the workstations password with
smbpasswd -m -w workstation or
(echo pass;echo pass) | smbpasswd -s -m -e workstation
I get the above error.

Cheers, Tilo


More information about the samba mailing list