- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root password change on a remote server
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
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
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
тАО08-26-2004 08:04 AM
тАО08-26-2004 08:04 AM
========================================
Am on server A, attempting to change the root passwd on server B. Am using the following commands at the shell:
++++++++ commands ++++++++
# remsh remote_host -n passwd << EOF
> newpasswd
> newpasswd
> EOF
Changing password for root
pam_chauthtok: System error
++++++++++++++++++++++++++++++++
I need help troubleshoooting the erro : pam_chauthtok: System error.
OR, if you have a better solution to achieve objective, please share it with me.
ps: Server A entry exists on the .rhosts file on Server B for root user.
-Sravan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2004 08:20 AM
тАО08-26-2004 08:20 AM
Re: Root password change on a remote server
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=107597
(Searched Forums for "change password remote".)
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2004 08:28 AM
тАО08-26-2004 08:28 AM
Re: Root password change on a remote server
Better to just do a:
remsh remote_host
Then update password interactively - especially root....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2004 08:57 AM
тАО08-26-2004 08:57 AM
Re: Root password change on a remote server
I have about 60 servers whose root passwd needs to be changed. Thats why I was trying to script it.
I was able to do this on HP-Tru64 servers using rsh.
I was hoping, I could do it using the remsh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 12:42 AM
тАО08-27-2004 12:42 AM
Re: Root password change on a remote server
Well, with 60 servers, you might want to look at NIS or a third party system like Unix Control:
http://www.tfstech.com/solutions/unixcontrol/index.htm
That way you have a centralized system for maintaining users/passwords/access, etc.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 01:01 AM
тАО08-27-2004 01:01 AM
Re: Root password change on a remote server
- Change the password on one server.
- Copy the /tcb/files/auth/r/root file from that server to every other server.
This of course assumes you're configured as trusted systems.
It's dirty, but you want it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 01:29 AM
тАО08-27-2004 01:29 AM
Re: Root password change on a remote server
Thanks. We use NIS serving all non-root users. Root, for some reason was set locally by the prior SA. If root was served by NIS and there is a network problem. Aren't we hosed ??? What are your thoughts on this ?
Simon,
we dont use trusted system. For that matter, we dont use many of the new features, and we are stuck with this architecture for the near future. Thanks for the advice though !!!
I read an article, where the poster implemented the solution using remsh.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=107597
Unfortunately, he did not share the script. sob .. sob ...
Sravam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 01:44 AM
тАО08-27-2004 01:44 AM
Re: Root password change on a remote server
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=365587
That's what's great about TFS Unix Control - if network is down, root can still login...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 02:48 AM
тАО08-27-2004 02:48 AM
SolutionJeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 03:24 AM
тАО08-27-2004 03:24 AM
Re: Root password change on a remote server
1. Use expect
2. Generate the scripted password on host and paste that into the password field on remote server.
3. Use of ssh/rsh with command /usr/sam/lbin/usermod.sam
e.g.
ssh remote_host "/usr/sam/lbin/usermod.sam -p `echo "1234abcdxy"|/usr/bin/makekey` user_name"
This would set the password to 1234abcd for user user_name on remote host. the password has to be of 8 chars. The chars xy are salt chars. If you set ssh to authenticate with public keys, you will not require any interference in this.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 03:49 AM
тАО08-27-2004 03:49 AM
Re: Root password change on a remote server
I replaced the telnet with remsh and used the same script with little modifications(removing trusted system line). It works great. Thanks for your help.
Anil,
am using .rhosts, so for all my Tru64 servers, am using rsh and it works fine. For HP-UX boxed, I found the solution using remsh proposed by another poster in my earlier mentioned article. Thanks for the suggestion, anyway.
Thanks everyone for helping me out.
============ script ==============
for HOST in `cat /tmp/hosts-HP`
do
( sleep 2
echo "hostname"
echo "passwd"
sleep 2
echo "Newpasswd1"
sleep 2
echo "Newpasswd1"
sleep 2
echo exit
sleep 5 ) | remsh $HOST
done
=================
Sravan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 03:51 AM
тАО08-27-2004 03:51 AM