smbpasswd password changing

Andrew Bartlett abartlet at
Wed Mar 27 01:45:04 GMT 2002

Andrew Morgan wrote:
> I'm using the smbpasswd program inside a perl script to change the
> password of users on a remote NT4 PDC.  Unfortunately, I keep getting the
> following error:
> [root at raven]# /private/samba/bin/smbpasswd -s -r asherah -U my_test1
> abc123
> 123abc
> 123abc
> unable to open passdb database.
> ERROR: Unable to locate my_test1 in passdb!
> Now, raven (this machine, Samba 2.2.3a) is a domain member, running in
> security = domain mode.  I have no desire to maintain a local smbpasswd or
> passdb.  Why does smbpasswd insist on trying to update the local password
> even though I've specified a remote machine?  The remote password change
> seems to be working even though it throws an error about the local
> password change.
> Everything works fine if I don't run smbpasswd as root, because it doesn't
> try to change the local password.
> Should I be using something else to change remote passwords?

No, it is just samba preparing for what you *might* do if you run
smbpasswd as root.  A simple 'touch' of the smbpasswd file should kill
the error message.

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at

More information about the samba-technical mailing list