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!

remsh passing information

Status
Not open for further replies.

teakandme

MIS
Jun 10, 2004
57
US
I would like to set the passwd for newly created users using remsh to all systems. How can I pass the password using remsh to the remote system to issues the command passwd <username>? I am trying in my script

remsh <hostname> passwd <username>
 
This might be better suited for the C++:UNIX forum.

I don't think it's possible to use passwd to change a password automatically since that would be a security hole. You need to type the new password on the keyboard.

There are probably some UNIX system calls that you can call to change the password since some programs are able to do it, but I haven't got a clue what those functions are?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top