[Samba] How to create users accounts with already encrypted passwords ?

Clemence Francois.clemence at univ-metz.fr
Thu Nov 27 17:37:16 GMT 2008

Hi, i need to create users accounts into Samba with already encrypted 
passwords from a file. I use tdbsam backend and Samba 3.0.24 (Debian Etch)

The file format is quite easy :
login1|Unix_passwd|Lanman Password Hash|NT Password Hash

First, i create the unix users with their already encrypted password : 
useradd -p Unix_passwd login1.

But can i do the same thing with smbpasswd or pdbedit ? I haven't found 
anything about this.
How can i do ?


More information about the samba mailing list