Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

VanLUG Mailing List
Re: Creating 100's of users with passwords

New Message Reply About this list Date view Thread view Subject view Author view

David Ayre (dayre@sfu.ca)
Fri, 10 Sep 1999 23:03:04 -0700


falstaff@lennon.postino.com wrote:

> I am trying to setup over 100 users on a RH6 linux box, with passwords.
> I have a perl script that runs /usr/sbin/adduser to create the users, but
> I cannot figure out how to create the passwords. Someone suggested using
> chpasswd to change the passwords, but I cannot figure out how to pipe
> a list of users & passwords to the command. Any help appreciated.
>
> --
> Danny Aldham Providing Certified Internetworking Solutions to Business
> www.postino.com E-Mail, Web Servers, Mail Lists, Web Databases, SQL & Perl

I think using the "newusers" command (should be part of the RH6 dist.. its on
mine) may be easier to use... it can update and create users in batch from a
file listing usernames and cleartext passwords which it then encrypts.

Your input file is a file similar in format to /etc/passwd with the exception
that the
password field is in cleartext... Since you seem to be working with perl.. i
don't
think you'd have a hard time whipping up a script to create this file with
your users and set them up with inital randomly generated passwords (6+
randomly chosen numbers/letters ?)..

hope this helps...


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Sat 11 Sep 1999 - 06:07:10