Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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.

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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