[K12OSN] Smbldap-bulk-useradd change password encryption
Jim Kronebusch
jim at winonacotter.org
Fri Aug 12 19:48:48 UTC 2005
> Anyone know what switches to add to smbpasswd so that I can
> do something like "smbpasswd username passwd" and not have it
> prompt me for a password?
Okay, I figured out the syntax I need.
# (echo $password;echo $password) | smbpasswd -s $username
Now if anyone can help me with a script that would parse a file called
userpasswords in the format of username,password and do something like
for everyline in userpasswords set $username as username and $password
as password and then run the above command I would be set.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.7/70 - Release Date: 8/11/2005
--
This message has been scanned for viruses and
dangerous content by the Cotter Technology
Department, and is believed to be clean.
More information about the K12OSN
mailing list