- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to change /etc/passwd in a cluster in the 2 no...
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
09-27-2001 09:42 AM
09-27-2001 09:42 AM
My question is how can I do change /etc/passwd in a cluster in the 2 nodes ? . I use passwd command.
And if it's possible without using NIS.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 09:45 AM
09-27-2001 09:45 AM
Re: How to change /etc/passwd in a cluster in the 2 nodes.
Yes you can use "passwd" command. Do it on both the nodes, so that the password is same on both the system. You can run the command as root. If you are doing it as a user, you should login individually on both the node and change it.
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 10:08 AM
09-27-2001 10:08 AM
Re: How to change /etc/passwd in a cluster in the 2 nodes.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 10:13 AM
09-27-2001 10:13 AM
Re: How to change /etc/passwd in a cluster in the 2 nodes.
If these cluster nodes you are talking about are part of NIS, then you should use "yppasswd". Otherwise use "passwd". If they are not part of NIS, you don't have to put them into NIS to change password.
But do change the password on both the systems and keep them same.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 10:36 AM
09-27-2001 10:36 AM
SolutionThe easiest way is to have NIS configured, if not you might have to write a wrapper script for passwd which when invoked changes the password in all the nodes in the cluster.
Take a look at the HP doc UXSGKBAN00000227
/Begin/
Password Synchronization and MC/ServiceGuard
DocId:
UXSGKBAN00000227
Updated:
20010511
DOCUMENT
Since ServiceGuard-packaged applications can roam amongst servers, the
user will be unaware that updating a password on the packages' current
host will have no effect on other adoptive hosts of the application. For
this reason, system administrators of ServiceGuard clusters have to select
the best method to maintain passwords across multiple systems.
Password synchronization can be accomplished by the user manually updating
each host, by the use of scripts to automate the process, or by using NIS
(network information name service).
NIS configuration and management is relatively easy when compared to
configuring a MC/ServiceGuard cluster. This may prove to be the least
overhead path to the solution to a system administrator uneasy with shell
scripting. It is recommended that NIS servers be located on different
clusters to prevent a single-point of failure.
The scripting method uses either a cron job to periodically perform the
update task, or a wrapper command (a script called in place of
/usr/sbin/passwd) which updates multiple hosts when necessary (the fact
that the script was called within a package login can indicate that
multiple hosts must be updated). Either way, the core of the script will
typically use rdist or rcp to perform the copy.
/End/
Look at the HP doc for more information.
Here is another thread of similar nature
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0df0a14d9abcd4118fef0090279cd0f9,00.html
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 10:58 AM
09-27-2001 10:58 AM
Re: How to change /etc/passwd in a cluster in the 2 nodes.
If nis is not possibility, I would prefer a wrapper to passwd to allow users to change passwords on all nodes in cluster.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2001 11:06 AM
09-27-2001 11:06 AM
Re: How to change /etc/passwd in a cluster in the 2 nodes.
When you have more systems(the latest i believe is 16 systems) in a cluster, you probably should use NIS to maintain the consistency of password and other changes. But when we talk about a two node cluster, i think we can avoid the pain of managing NIS too.
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 05:36 AM
10-03-2001 05:36 AM
Re: How to change /etc/passwd in a cluster in the 2 nodes.
my solution is run a croned shell script that rcp's the /tcb/files/auth/?/
This shell runs at 00:00 and 12:00 for logins id > 2000 {I setup application users with logins > 2000}.
The nodes must be in TCB mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 06:55 AM
10-03-2001 06:55 AM
Re: How to change /etc/passwd in a cluster in the 2 nodes.
I also suggest using NIS, an other option is using a SD kit that changes the passwd string in the /etc/passwd file. This way you can easely check if the passwd is the same on both nodes.