I'm trying to make a program that will store the passwords with users input (a web app), rather than having to do it from the command line. The problem is that I don't know where the passwords are being stored as to change then.


The default Samba configuration on my system puts the password database in /var/lib/samba/passdb.tdb. Note that this is a binary database, not a flat text file.

You can tell Samba to use a text file by setting the "passdb backend" parameter in /etc/samba/smb.conf. But Samba uses a different password hashing algorithm from the one in /etc/shadow.


  • In addition: You can check it with sudo su and tdbtool. Maybe you will open open passdb.tdb. However, you will receive the hex password. So you can only check if a new entry has been added and not what the password is.
    – Micha93
    Mar 22 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.