- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- syncronising passwords between 3 HP-UX 11.31 syste...
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
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
07-15-2009 10:03 PM
07-15-2009 10:03 PM
syncronising passwords between 3 HP-UX 11.31 systems
We already have useradd and userdel scripts which keep the users up to date on all systems, but the users seem to have issues with keeping their passwords the same on all systems.
thanks
Ross
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 10:10 PM
07-15-2009 10:10 PM
Re: syncronising passwords between 3 HP-UX 11.31 systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 10:41 PM
07-15-2009 10:41 PM
Re: syncronising passwords between 3 HP-UX 11.31 systems
I will go with copying the /etc/passwd and the /etc/shadow passwords ( not worreid about their home dir contents).
ldap/nis takes too much time to setup/test/implement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 10:46 PM
07-15-2009 10:46 PM
Re: syncronising passwords between 3 HP-UX 11.31 systems
Copy /etc/passwd â for adding new users to other two systems
Copy /etc/shadow,/tcb â to sync the passwd
Home directories â to get all the ssh keys and user data
/etc/group â to get all users primary and secondary group information.
I would suggest to only the newly added users to other two systems not all the users so that there will not any change in existing user information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 10:49 PM
07-15-2009 10:49 PM
Re: syncronising passwords between 3 HP-UX 11.31 systems
Copy /etc/passwd - for adding new users to other two systems
Copy /etc/shadow,/tcb -to sync the passwd
Home directories -to get all the ssh keys and user data
/etc/group -to get all users primary and secondary group information.
I would suggest to only the newly added users to other two systems rather all the users so that there will not any change in existing user information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 10:56 PM
07-15-2009 10:56 PM
Re: syncronising passwords between 3 HP-UX 11.31 systems
the best idea is to implement NIS/LDAP,
because the accounts will be synchronized.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 06:18 AM
07-17-2009 06:18 AM
Re: syncronising passwords between 3 HP-UX 11.31 systems
Try the attached script along with what you are already doing. You will need to modify a few variables towards the top for system names.
This is assuming your systems are trusted and depends on the accounts being in place.
Also you need to have an account with sudo root privs that can ssh to each system.
HTH
DCJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 06:53 AM
07-17-2009 06:53 AM
Re: syncronising passwords between 3 HP-UX 11.31 systems
Also take care when copying and modifying /etc/shadow and /etc/passwd to keep any modification atomic, i.e. within one system call. Else you'll have problems with software that might forget who they're running under for a few milliseconds and this can be messy. Using "mv /etc/passwd.new /etc/passwd" works... but opening it up with sed to modify it directly is risky!
With 11.31 useradd and usermod now have the -F option to force modifications even if an account is in use, which is good for accounts such as oracle and root. Also -p lets you hand out an encrypted password on the command-line. Using these options, you can easily create a homemade script to distribute modifications from a centralized location, without needing to fiddle with /etc/passwd and /etc/shadow directly.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 11:42 AM
07-17-2009 11:42 AM
Re: syncronising passwords between 3 HP-UX 11.31 systems
you can copy your /etc/passwd and /etc/shadown files without any issues. But to keep these files in sync or updated. i would recommend configuring NIS for it. even if configuring NIS takes time, as Basheer said, but you need to configure it once and your problem is solved for ever for such similar issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2009 04:06 PM
07-23-2009 04:06 PM
Re: syncronising passwords between 3 HP-UX 11.31 systems
the systems are not trusted but using Hp new userdb structure. I was wondering if I update the shadow file on one of the other systems from the prod system, will the userdb area get updated say if the passwd on the dev server had expired and the account was locked/
thanks
Ross
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2009 03:07 PM
10-06-2009 03:07 PM