Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

after upgrading debian from lenny to squeeze (and samba to 3.5.6 version) all user account seems to be deleted. I have to recreate them using smbpasswd -a username and then set new password.

Second thing is that I've smb passwd file = /etc/samba/passwd option set in config file but it doesnt work in new version of samba. I really dont know where the passwords are stored now.
How to restore all previous samba user accounts?

share|improve this question
up vote 0 down vote accepted

Samba uses TDB format databases as a faster alternative to textual smbpasswd files. The account database is located at /var/lib/samba/passdb.tdb by default. Use pdbedit --import.

share|improve this answer
So the "smb passwd file" option is ignored? – daftu Mar 13 '11 at 9:54
@daftu: See "passdb backend" in the manual of smb.conf. – grawity Mar 13 '11 at 12:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .