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

Creating User accounts by Script

Status
Not open for further replies.

Fixles

Programmer
Jan 24, 2002
36
GB
Hi,

I have written a very simple script that creates sco user accounts on 4 servers using useradd and rcmd commands.

The problem is that i can execute the passwd $user command on the server i am running the script but i cant execute rcmd server -n passwd $user

Is there a command line util i can use to change a user password? i.e passwd user password

Many Thanks,

James
 
You may consider using expect

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top