Encrypted passwords

Davenport, Todd S. davent at eglin.af.mil
Fri May 29 20:54:42 GMT 1998


Is there a tool, either for Perl or C, that will add/change the NT and
LM encrypted passwords in the smbpasswd file?  I know about the
smbpasswd command, but I can't use that function from a script.  I tried

#!/bin/perl
system("smbpasswd \< $oldpassword\n$newpassword\n$newpassword\n");


and some other things, but I couldn't get it to work.



TSD


More information about the samba mailing list