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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with passwd!!!

Status
Not open for further replies.

brendan11

Programmer
Jul 16, 2001
10
IE
Folks,
I am trying to put the unix account password set procedure in a script to automate it. When you use "passwd login" it prompts you to enter the password. How can I automate this is a small program so that it takes the password as a parameter passed in rather than prompting at the screen??
 
With the standard UNIX passwd program you can't. You can however write your own version of the passwd program to do so.

Bill.
 
You can also try "expect". It is a freeware app that can do some of that including bulk changing of root passwords in a network on different machines. But it still needs it to be inputed not passwd.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top