Automate account creation?

Automate account creation?

Post by Greg » Sat, 21 Feb 1998 04:00:00



Hi
Does anyone know of a script that will take a bunch of names and create user accounts; I have over
300 people to give accounts to (we are not swapping files or running NIS for security reasons) and I
don't relish the thought of doing this by hand; also is there a decent fast way to generate random
passwords?

 
 
 

Automate account creation?

Post by _ » Tue, 24 Feb 1998 04:00:00


Use Perl to read the file into an array and then use your OS's command line
to adduser.  Supply the args from the array of usernames.



Quote:> Hi
> Does anyone know of a script that will take a bunch of names and create

user accounts; I have over
Quote:> 300 people to give accounts to (we are not swapping files or running NIS

for security reasons) and I
Quote:> don't relish the thought of doing this by hand; also is there a decent

fast way to generate random
Quote:> passwords?


 
 
 

Automate account creation?

Post by Ulric Eriksso » Tue, 24 Feb 1998 04:00:00



> Hi
> Does anyone know of a script that will take a bunch of names and create user accounts; I have over
> 300 people to give accounts to (we are not swapping files or running NIS for security reasons) and I
> don't relish the thought of doing this by hand; also is there a decent fast way to generate random
> passwords?

Take a look at newusers from J F Haugh's shadow password suite.
It takes a file in /etc/passwd format as input, with the passwords
unencrypted, and generates users from it.

Also available is an HTML form at

        http://teknik.edu.stockholm.se/cgi-bin/konton

which will automate some of the job, but it will be no good for you
unless you know Swedish.

A binary of newusers for Solaris is available from

        ftp://ftp.edu.stockholm.se/pub/konton/solaris/

and probably many other places.

Ulric

 
 
 

1. Automate Account Creation

I have looked back and forth across the web and the newsgroups, but
have been unable to find a simple way to create users on a Linux/Unix
system using the useradd and/or passwd commands from a data file
listing the users and passwords.

Is this possible??  I can format the data file any way necessary, but
I have 200 user accounts to create and don't have the time or patience
to enter these in manually.  I have "faked" a way to create the users,
but the password thing is still stopping me, I cannot get the passwd
command to take input from a file as the useradd command does.

Any ideas??

2. IPTables: Ready for general use?

3. Automated Account Creation

4. Newbie Help: Windows Media Player files

5. Automated account creation for Linux

6. Boca V.34 Office Communicator plug&play modem

7. Automate Creation of Student Accounts

8. 2.5.46 won't boot with root=/dev/hda5, does with /dev/ide.../part5

9. Automated creation of user accounts?

10. Automating User Creation

11. automate user creation process

12. Automating the creation of a user in master.passwd file

13. automate user creation process