Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i add many user and apply new password for that new user ?

Status
Not open for further replies.

trong

Programmer
Aug 1, 2001
11
VN
I have to add a lot of user at the same time, and with random password. Does anyone know anyscript that can adduser and change password for a list of user ???

Thanks in advance

Trong Van Ho
 
a script which run under AIX

#!/bin/ksh
while read zeile
do
mkuser $zeile
/usr/local/bin/chpass $zeile $zeile
done < dat12
exit


dat12 is a file which contain's the userid's.
chpass is a freeware included in AIX-Tools on (corporate)
which changes passwords. in this case userid and password
are equal.
hope it helps

schleife
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top