- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Syncing Passwords on 2 servers
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-15-2004 02:53 AM
01-15-2004 02:53 AM
The only thing I am not in sync is the the unix users.
Both are HPUX 11.0 servers and are non trusted systems.
I control the new users and the users change there own passwords.
Is there a way to keep the users and passwords in sync while only maintening one server?
Marty, Doer of Things
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 02:57 AM
01-15-2004 02:57 AM
Re: Syncing Passwords on 2 servers
There's NIS and NIS+. They'll do the job but can be complicated in and of themselves and also complicate other things. Another simple technique would be to regulary copy the password file from the main server to the standby. You could use cron, even, to do it once an hour, once a day, whatever!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:01 AM
01-15-2004 03:01 AM
Re: Syncing Passwords on 2 servers
I am already using rsync/ssh to keep most thing up to date.
If it us rsync to keep the passwd file synced is there any thing I should do to make sure the PID numbers are the same for the system stuff?
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:04 AM
01-15-2004 03:04 AM
Re: Syncing Passwords on 2 servers
Many organizations shy away from NIS due to the complexity.
Another alternative would be to make the main server an LDAP server and have the offline server be an LDAP client.
Then the only authentications that will be out of synch would be root, which should be different anyway.
I think many organizations are moving toward LDAP because they can also handle Microsoft authentication in such a setup.
Another alternative, not as easy as Pete's but possibly a good route nonetheless.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:04 AM
01-15-2004 03:04 AM
Re: Syncing Passwords on 2 servers
Copy also /etc/group if you add groups on the main server. If you use /etc/ftpusers copy this file aswell.
REgards,
Peter Geluk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:06 AM
01-15-2004 03:06 AM
Re: Syncing Passwords on 2 servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:08 AM
01-15-2004 03:08 AM
Re: Syncing Passwords on 2 servers
What do you mean by the "PID numbers"?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:12 AM
01-15-2004 03:12 AM
Re: Syncing Passwords on 2 servers
metm:aRCxNJfnIXEmA:103:102:Marty....
the 103,102 UsedID#, and GroupID#
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:16 AM
01-15-2004 03:16 AM
Re: Syncing Passwords on 2 servers
Ah, the User ID Number (UID)! If you're copying the passwd file (and the group file) from one machine to the other, they'll be identical, as will the UID numbers. Or am I missing something (I'm not really familiar with rsync/ssh).
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:21 AM
01-15-2004 03:21 AM
Re: Syncing Passwords on 2 servers
If all you're dealing with here is 2 systems then a simple cronned rcp/scp will do.
But beyond the /etc/passwd file I'd also copy the /etc/group file, the /home dir as well as the /tcb dir structure if trusted.
That way *everything* would be in sync.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:25 AM
01-15-2004 03:25 AM
Re: Syncing Passwords on 2 servers
Say a file was owned be user METM and Group VISIB. In the passwd file these are 102,103.
Does the system uses the numbers or the names to keep things straight.
Meaning if I copy the passwd file to the Standby server and the UID Nos do not match will this be a problem now. Right now some of then do not match on the 2 servers.
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:28 AM
01-15-2004 03:28 AM
Re: Syncing Passwords on 2 servers
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:29 AM
01-15-2004 03:29 AM
Re: Syncing Passwords on 2 servers
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:30 AM
01-15-2004 03:30 AM
Re: Syncing Passwords on 2 servers
You *must* match UID <=> name between systems. BUT this would be accomplished on the first copy anyway. But it's also possible that then you'll have files owned by now non-existent UIDS & you'd have to find & change them all. So map out the name to UID before changing so you know what to change & to whom.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:34 AM
01-15-2004 03:34 AM
Re: Syncing Passwords on 2 servers
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:12 AM
01-15-2004 05:12 AM
Re: Syncing Passwords on 2 servers
I have to make the Standby servers UID match the Primary served first. Most match now.
If I understand your messages, I can change the UID's that do not match on the standby box and change the ownership on the few files that they own.
Once done, I should beable to copy the passwd, group and User's directories and I should be set to keeping then in sync.
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:14 AM
01-15-2004 05:14 AM
Re: Syncing Passwords on 2 servers
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:19 AM
01-15-2004 05:19 AM
Re: Syncing Passwords on 2 servers
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:51 AM
01-15-2004 05:51 AM
Re: Syncing Passwords on 2 servers
Again you have cleared up my thoughts.
You have saved me more work. That is right after I do some more things.
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:59 AM
01-15-2004 05:59 AM
Re: Syncing Passwords on 2 servers
I had one last thought: I don't think my suggestion about the find command will work so you'll need to do it either by home directory or by pre-building a list of files for each user (the find command could be used for this, though).
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 06:10 AM
01-15-2004 06:10 AM
Re: Syncing Passwords on 2 servers
I plan on comparing both passwd file first to see the difference. Using a script that is. Same with the group file. After I get the list of difference I can manually or with a script fix the ownership/groups as needed after the fact.
Users should not be a problem as thay are captive and only have ownership to there home directory and I will be replacing that.
It is just a few special accounts that I create jobs.
There is only a couple hundred records in the passwd file so it will not be to bad of a project.
After this is done I can use 'rsync' to keep the files up to date. That part is easy.
Thanks again Pete,
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 06:14 AM