[Samba] How can one set/reset machine account passwords

TAKAHASHI Motonobu monyo at monyo.com
Thu Dec 23 05:49:19 MST 2010

2010/12/23 Taso Hatzi <taso.hatzi at gmail.com>:
> Scenario:
> c) I roll in a new ldap database from a known good copy.
> d) Problem is the passwords for the machine accounts are out of date.

To disable to change machine account passwords, you will restore
passwords from backup.

To disable, execute below on your Samba DC:
 pdbedit -P "refuse machine password change" -C 1
(you may use net sam policy instead.)

or set each clients' DisablePasswordChange key as

TAKAHASHI Motonobu <monyo at samba.gr.jp>

More information about the samba mailing list