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!

mkuser command - how to assign initial password

Status
Not open for further replies.

pdtak

Technical User
Feb 25, 2008
63
US
I need to give an initial password when creating a user via mkuser command in a script so that I don't have to login to each server and type in a passwd or pwdadm command(AIX environment).
Anyone have any idea on how to do this?
Thanks in advance.



 
chpasswd is one option (from AIX52 onwards), an expect script will work also.

(and please don't cross-post on different fora)


HTH,

p5wizard
 
you could use this:

echo "root:ibmaix" | chpasswd -c
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top