04-22-2002
The expect tool is a powerfull tool and can be used to automate diferents jobs, you need to use your imagination to give him the
benefits of install this tool.
ANYWAY you only need to install the tool in one server that have connectivity to the others.
from your development server
ksh script change_passwd.sh
#!/bin/ksh
for server in server1 server2 server3 ... servern
do
expect -f my_expect1 $server <login_name> $1 $2
sleep 5
done
----
call ./change_passwd.sh <old_passwd> <new_passwd>
Regards, Hugo.
Last edited by hugo_perez; 04-22-2002 at 05:04 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have more than 50 server unix's password need to change, usually I assign one password for all hosts, for easy remember, but I need to change password every two months..it's very tried to change password every 2 months, is there any unix script that can change password easily?
ie ' script... (4 Replies)
Discussion started by: zp523444
4 Replies
2. Shell Programming and Scripting
hi,
Somebody have or known where i can find a perl small perl program to change the password.
The point: First it verify is the user exist, checking the old typed password and replace it with new. The passwords must be encoded.
Thanks, very much! (0 Replies)
Discussion started by: kad
0 Replies
3. Shell Programming and Scripting
Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.
which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I got these 3 servers: a, b and c which I ssh from a to b/c.
a:$ ssh userid@b
Password:
a:$ ssh userid@c
userid@c's password:
Notice that the password prompt is different (highlighted in bold) on both servers even though their SUN Solaris version the same, OpenSSH version... (0 Replies)
Discussion started by: DrivesMeCrazy
0 Replies
5. Shell Programming and Scripting
Hello Gurus
I have little challenge which I do not know how to address it. I have unix account on many servers (let's say over 25). These accounts expire every 60 days. Is there scripts that I can run from my "local computer" and pass a new password to it where it would change it for me on all... (7 Replies)
Discussion started by: nimo
7 Replies
6. HP-UX
Hi,
we have around 50 users and every month we need to change the password manually once its expire.
do we have any script to change the password automatically.
OS -HP-UX
Thanks in advance.. (6 Replies)
Discussion started by: periyasamycse
6 Replies
7. Shell Programming and Scripting
Hi Friends,
Every morning i need to change the password, please advise how it can be automated. I am having pre planned password list for 4 months which can be used as input file for new passwords.
Thanks (28 Replies)
Discussion started by: rajjev_saini123
28 Replies
8. Shell Programming and Scripting
Hey Gurus,
I have this requirement to change the password for other servers remotely from one server. So, I installed public keys on all servers and wrote the following script to do the job. Something appears to be wrong with my loop, as it only changes one server and ignores the rest. I'm... (24 Replies)
Discussion started by: Hiroshi
24 Replies
9. Shell Programming and Scripting
Hi Folks,
I am trying to change the password for the user "sysservice"
Where my requirement is login to each server and exit from that and ssh to the next server.. I have enabled the password less auth for the user sysservice.
for i in `cat /home/sysservice/servers.txt`
do
ssh... (1 Reply)
Discussion started by: gsiva
1 Replies
10. Forum Support Area for Unregistered Users & Account Problems
I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login.
Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies
LEARN ABOUT SUNOS
answerbook2_admin
answerbook2_admin(1M) System Administration Commands answerbook2_admin(1M)
NAME
answerbook2_admin - bring up AnswerBook2 administration tool GUI
SYNOPSIS
/usr/dt/bin/answerbook2_admin [-h]
DESCRIPTION
The AnswerBook2 server product is no longer included with Solaris or the Solaris Documentation CD products. Solaris docmentation is now
provided in HTML and PDF format on the Documentation CD and does not require the Answerbook2 server to be viewed.
answerbook2_admin brings up the default web browser showing the administration interface for the local AnswerBook2 server.
The administration functionality is also accessible through the AnswerBook2 Admin option within the System_Admin subset of the Application
Manager function on the CDE front panel Applications menu.
If you need an AnswerBook2 server, you can download the AnswerBook2 server software from http://www.sun.com.
OPTIONS
The following option is supported:
-h Displays a usage statement.
USAGE
At startup time, answerbook2_admin starts up the default web browser (for example, Mozilla) and displays the URL specified for administer-
ing the local AnswerBook2 server (http://localhost:8888). If the user has set up administration access control, the web browser prompts for
a valid administrator login and password for this document server before displaying the administration tool.
FILES
/usr/lib/ab2/dweb/data/config/admin_passwd
File containing username:password
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |http://www.sun.com |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
NOTES
Once there is an open web browser and access to the AnswerBook2 Administration tool, use its online Help system to find out more about
administering the AnswerBook2 server.
SunOS 5.10 29 Oct 2004 answerbook2_admin(1M)