where does samba store its passwords?

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.

1 Answer

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.

source

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like