avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • November 14, 2018, 01:29 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Password tool to update multiple servers  (Read 3734 times)


  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 155
    • View Profile
    • Donate to Member
IDEA: Password tool to update multiple servers
« on: May 08, 2008, 10:26 AM »
I realized I put this in the wrong place, so here it is again. Sorry about that.

In my job, I have to do a lot of user password resets for multiple clients, on multiple servers. I was wondering if there was a tool or an application that can be made, or already has been made, to enter in the information and have it do it over multiple servers?


YOUR ID: johndoe
CLIENT ID: janedoe
Machine(s): server1, server2, server3, server4
YOUR PASS: password
NEW PASS: password

To do this manually, you'd have to enter something like this:

>ssh server1
(password prompt)
>sudo /usr/bin/passwd (userID)
(password prompt)

>ssh server2
(password prompt)
>sudo /usr/bin/passwd (userID)
(password prompt)

And so on. So if there is anyway to code this to work on Linux/Unix machines I'd really appreciate the help, and so would my co-workers.

Any questions, feel free to send me a PM.



  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 45
    • View Profile
    • Donate to Member
Re: IDEA: Password tool to update multiple servers
« Reply #1 on: May 23, 2008, 01:21 PM »

You should check the "expect" command from linux and do something like:

ssh $host
expect "Username:"
send "Login\r"
expect "Password:"
send "Passwd\r"

man expect

       expect - programmed dialogue with interactive programs