For multiple users, you need to
1. Open the file with the users names/password
2. Read that file
3. loop through the above command
So I will let you tidy this up
open (my $USERS,"<", "/file/of/users-password") or die ......;
while (<$USERS>){
chomp;
my ($user, $password) = split; #(I guess)
system("cpu usermod --password=$password $password");
}
Pradeep is managing his users on Ldap....
Take a look on this article...
http://www.linuxjournal.com/article/7086
You can mix Owen's script with the article examples and use
$ldap->modify($dn, replace => .... instead the system() call...
Good luck...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/