- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Password file in a cluster
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
12-30-2003 12:33 AM
12-30-2003 12:33 AM
We have two HP-UX 11i servers that are joined in a cluster. They are sharing one package. When ever server number one goes down and the server number two picks up, we have a problem with users login. Password file is not in a sink across two servers. I would like to get some suggestions how to copy (and maybe add date stemp to the name of copyed file), from one server to another. FTP and TELNET are closed, but SFTP is open.
Regards,
Miro Vran
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 12:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 12:55 AM
12-30-2003 12:55 AM
Re: Password file in a cluster
I guess you don't run NIS password file..
Let's say you just run the normal password file.
You could just rcp the file over, or sftp. but you have to take care that all users are defined on both sides and that they have the same uid/gid on both sides. And that all groups are the same on both sides. Probably you will have to copy the /etc/group file as well.
Here's an interesting fact:
1. Both of these password file entries are for the same password (on different servers):
# grep saroot /etc/passwd
saroot:OK4hGX3bM9gBE:0:3:PSEUDOROOT ...
# grep saroot /etc/passwd
saroot:RLNpquAEpxWr6:0:101:Stuart ...
2. They look different because the encryption algorithm uses the date
and/or time in the encryption process.
3. But they will decrypt to the same password.
4. And they will work properly if you copy them around from server to
server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 01:12 AM
12-30-2003 01:12 AM
Re: Password file in a cluster
What I would do to make it work, is to mark one of the servers or perhaps a package as leading and then copy the passwd file using scp, sftp or something like that (rsync springs to mind) accross to all other cluster nodes. By making the package leading, the users can change their passwd even when the package has fail-overed. But mind that users in packages on the other node will loose any passwd changes...
If that is not what you want, there is another way if you can define a regex that only matches the users that need to be available for the package: at regular intervals, copy only those lines from the passwd files to a lvol for the package and when the package starts, copy them back into /etc/passwd and other places they should be (/etc/shadow, /tcb/..., etc.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 01:32 AM
12-30-2003 01:32 AM
Re: Password file in a cluster
We are not running in a trusted system so we are using a regular passwd file.
Miro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 04:53 AM
12-30-2003 04:53 AM
Re: Password file in a cluster
If you boot in single user mode, which hopefully you don't do that often, you won't have a passwd file.
Shared disks are, by definition pretty much, not internal drives, and you can't always be sure that they will be there when you boot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 04:59 AM
12-30-2003 04:59 AM
Re: Password file in a cluster
The real answer to your question is NIS, NIS+, or LDAP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 06:23 AM
12-30-2003 06:23 AM
Re: Password file in a cluster
on both machines? This is much simpler, if you want to
continue using the regular /etc/passwd file instead of NIS/etc...
If you don't have hundreds of usernames, I'd sure look into it.
Particularly if you only have a few usernames to "convert"
to a new uid or gid. You just have to seek out their files/dirs
and chown them to the new id/gid once you make changes.
We do this across many servers, including a 4 node cluster.
Just as root is uid "0" on every box, oracle is uid XXX,
my personal username is uid XXXX, etc... it really simplifies things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 09:21 AM
12-30-2003 09:21 AM
Re: Password file in a cluster
as part of the package shutdown (and via cron so even a crash will be catered for) and then copying it from shared disk
back to /etc on package startup?
This way passwd for the package is always in
sync for the "on-line" node and modifications are taken along with the package?
It also means that single user mode will still work and passwd is in its "normal" place
and there are no user passwords sitting around in clear text files that might be needed
for "ftp" type solutions.
HTH ...Laurie :{)