[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9019.0. "generating passwords of many accounts automatically" by DEKVC::HUNJAELEE () Mon Mar 03 1997 23:50

    hi, all
    I am searching a solution. It is how to generate passwd automatically.
    Our customer site has about 20000 users. They have to make user's home
    directories, login name, and passwords. I have tried to modify
    "adduser" script to read file in which
    username/parent_dir/shell_type/password is. But I don't know how to
    input 20000 passwords predefined by the customer. Is there no way except
    typing passwords one by one? 
    
    Again, I want a program running like this.
    
    #program username password
    
    then the program make passwd of the user.
    
    Thanks in advance any reply
    
    DEK/hjlee
T.RTitleUserPersonal
Name
DateLines
9019.1expect has it nownamix.fno.dec.com::jptFIS and ChipsTue Mar 04 1997 04:0512

	Piece of cake:

		Use expect, pointers should already in this conference
		or use AltaVista Search to find it. Expect can be
		used to do anything that can be done only with
		terminal attached. It can be used to automate
		fto copies, setting passwords and many many other
		things as well.

			-jari
9019.2thanksDEKVC::HUNJAELEEWed Mar 05 1997 09:343
    Thank you for your comments. I'll try.
    
    hjlee
9019.3ready to run ...namix.fno.dec.com::jptFIS and ChipsWed Mar 05 1997 12:227
	Just checked, and expect kit contains at least two examples
	that will make with minor modifications just what your asking for:
		autopasswd (scripted password change)
		passmass (massive networked password changes)
	See also 4251.*

9019.4Good but...DEKVC::HUNJAELEESat Mar 08 1997 21:105
    I got the kits, and made my script for my purpose. But The script are
    some problem. Running my script, defunct processes incresed as time passed.
    After all, program could not fork any more. 
    
    dek/hjlee
9019.5how?namix.fno.dec.com::jptFIS and ChipsMon Mar 10 1997 16:085

	Sounds like parent process is not doing wait for childs...My version
	of expect doesn't have such problem, or the we use it different
	ways...could you please provide an example how you use it?