- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to force/change uid and gid of an user?
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
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
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
тАО11-19-2003 07:45 PM
тАО11-19-2003 07:45 PM
I've a system with MC/SG; when a package switches all the related files are "managed" by the new active node, therefore I need to have all the users existing on both the main node and on the spare node.
It's mostly important that the uid and the gid of the users are the same on both the node.
Is is possible to force the uid and the gid of an user? As concerning the gid, can I force the identifier to be the same on both the nodes? For instance, the group dba should have the same identofier 101 on main and spare nodes.
Regards
Enrico
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 07:49 PM
тАО11-19-2003 07:49 PM
Re: How to force/change uid and gid of an user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 07:50 PM
тАО11-19-2003 07:50 PM
Re: How to force/change uid and gid of an user?
We run identical (or as identical as possible) passwd and group files on all nodes in a MC/SG cluster so in the event of a failover everything works straight off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 08:19 PM
тАО11-19-2003 08:19 PM
Re: How to force/change uid and gid of an user?
my problem is exactly how to make the passwd/groups files to be identical across the nodes ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 09:06 PM
тАО11-19-2003 09:06 PM
Re: How to force/change uid and gid of an user?
Now do this: cat passwd.* | sort -u >passwd.total
Now you have a passwd files with all entries, sorted by username. You now have to look into that file for multiple lines and see what's the difference between lines with the same username but some differenc on the rest of the line, fix it.
The same has to be done for the group file.
When ready, you can distribute that file to all nodes.
If you have to change user-id's or group id's you can use find to change all files with wrong id's on the server where the uid/gid is changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 09:21 PM