- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:08 AM
01-17-2003 07:08 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:11 AM
01-17-2003 07:11 AM
Re: root password
In my case, I keep the passwd file synchronised on all my hp-ux machines by rcp'ing it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:13 AM
01-17-2003 07:13 AM
Re: root password
Do a 'man rdist' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:17 AM
01-17-2003 07:17 AM
Re: root password
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:17 AM
01-17-2003 07:17 AM
Re: root password
We have a low enough ratio of servers to sys admins [about 5:1] that we just divide them up and change the root passwords manually.
The password files are mostly different on each box so we don't have the luxury of rcp'ing them.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:18 AM
01-17-2003 07:18 AM
Solution>>>> Shell wrapper
#!/usr/bin/ksh
for MACHINE in `cat MACHINES`
do
./allpw.exp "$MACHINE" "$USERID" "$NEWPW"
done
>>> allpw.exp
#!/usr/local/bin/expect
###############################################################################
set term vt100
set timeout 5
set SITE [lindex $argv 0]
set USERID [lindex $argv 1]
set NEWPW [lindex $argv 2]
spawn rlogin $SITE
expect {*TERM*)} {}
send "$term\n"
expect {*>} {} {*#} {} {*$} {}
send "/opt/super/bin/super passwd $USERID\n"
expect {*word:} {}
sleep 2
send "$NEWPW\n"
expect {*word:} {}
sleep 2
send "$NEWPW\n"
expect {*>} {} {*#} {} {*$} {}
send "exit\n"
close -i $spawn_id
exit 0
-----------------------
For convenience,I use a utility called super (similar to sudo) to allow me to change passwords using my own ID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 07:21 AM
01-17-2003 07:21 AM
Re: root password
Wrong verision of the shell script posted previously.
#!/usr/bin/ksh
LOG=log/pwchg.log
if [ `whoami` = "root" ]
then
echo "Script must not be run as root"
exit 0
fi
echo "Please enter ID for global password change:\c"
read USERID
echo "Please enter new password for ID $USERID: \c"
stty -echo
read NEWPW
stty echo
echo ""
echo "password change for $USERID on `date`" >> $LOG
for MACHINE in `cat MACHINES`
do
./allpw.exp "$MACHINE" "$USERID" "$NEWPW"
done