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?

link|improve this question
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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