smbpasswd password changing

Andrew Bartlett abartlet at pcug.org.au
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 pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net




More information about the samba-technical mailing list