Operating System - HP-UX
1752795 Members
6035 Online
108789 Solutions
New Discussion юеВ

Password change on multiple servers

 
SOLVED
Go to solution
mjos
Super Advisor

Password change on multiple servers

Hi, I need a script which will help in changing a user account password on multiple servers through ssh from one base server. The servers are of different OS with hp-unix, solaris & aix.
Will appreciate if anybody can belp me with such a script.
Thanks in advance
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: Password change on multiple servers

Shalom,

You need a script?

How about a service that takes care of it. Like ldap or NIS?

Unless you use an expect script, even if you set up password free access between systems, a script is not going to update password without interaction in this diverse server set.

expect is where I'd look for such a script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Nelson
Honored Contributor

Re: Password change on multiple servers

I use Expect for this as well..
mjos
Super Advisor

Re: Password change on multiple servers

Thanks, we dont have NIS configured in our environment. Can you please send me the details how expect works. Does expect needs to be configured in some script?
mjos
Super Advisor

Re: Password change on multiple servers

Thanks I was able to check out with expect utility. There is a passmass utility with expect through which the password can be changed. Can you help me with a simple script which will execute passmass on a list of servers listed in file. Instead of giving the list of servers in one line with passmass. can it take it from a file & change the passwoed - thanks.