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