Obviously I have not explained very well!
The tool I would like to contribute makes it possible to add hundreds or even thousands of new user accounts with a minimum of effort. Here is how it works.
1) Start off with a comma separated list of names, eg:
Sudev,Barar Georg,Baum Tom,Allison Jim,McQuillan Anselm,Martin Hoffmeister
2) Convert the names into a 'passwd' format file, but with the password in plain text. This is the format required by the 'newusers' command, which comes with most modern Linux distributions. The 'passgen' script automatically generates the username. It ensures the username is unique on the system. Finally, 'passgen' generates the password in plain text.
$ ./passgen names > myusers
3) The result looks like this.
$ cat myusers sudev:qVM2f::users:Sudev Barar:/home/sudev:/bin/bash georg:23897::users:Georg Baum:/home/georg:/bin/bash tom:28dPK::users:Tom Allison:/home/tom:/bin/bash jim:4d82G::users:Jim McQuillan:/home/jim:/bin/bash anselm:qZhMP::users:Anselm Martin Hoffmeister:/home/anselm:/bin/bash
4) To create the new accounts, run the result through 'newusers'.
# newusers myusers
5) The new accounts will be added to the system.
The 'newusers' command is astonishingly fast. It opens the account configuration files only once. It adds all the new accounts in a single operation. It is *much* more efficient than doing 'useradd' repeatedly.
The 'passgen' script is GPL. Would it be useful? The download can be found at http://www.lfsp.org/.
Phil
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net