- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sync users on multiple HP boxes
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
11-05-2000 09:19 AM
11-05-2000 09:19 AM
sync users on multiple HP boxes
Is there a way to get a list of users with their PID and GID numbers so I can compare and then sync among the many boxes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2000 11:47 AM
11-05-2000 11:47 AM
Re: sync users on multiple HP boxes
Keeping the UID (User ID) and the GID (Group ID) of your accounts the same on all your servers is a sound practice.
In the /etc/passwd file, the first field is the username; the second is the encrypted password; UID's are the third; and GID's are the fourth. Fields in /etc/passwd are delimited by colons (":").
The /etc/group file contains the name of the group as its first field. The third field is the GID for that name. The fields in /etc/group are also delimited by colons.
You can list both of these files by doing a "cat" or "more", like:
# more /etc/passwd
# more /etc/group
You can use SAM to change the UID of an account (user) in a round-about, but safe way. First create a new, temporary account. The name doesn't matter. Next, request the deletion of the old user account. SAM will ask you what you want to do with the files owned by the account you are deleting. Choose the option to "adopt" those files by the new temporary user. Then add back the "real" user with the original name, but specify the UID you want to use. Now delete the temporary account, transferring the files owned by it to the "real" account. You can do this repetetively.
Hopefully this helps.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2000 11:50 AM
11-05-2000 11:50 AM
Re: sync users on multiple HP boxes
Keeping the UID (User ID) and the GID (Group ID) of your accounts the same on all your servers is a sound practice.
In the /etc/passwd file, the first field is the username; the second is the encrypted password; UID's are the third; and GID's are the fourth. Fields in /etc/passwd are delimited by colons (":").
The /etc/group file contains the name of the group as its first field. The third field is the GID for that name. The fields in /etc/group are also delimited by colons.
You can list both of these files by doing a "cat" or "more", like:
# more /etc/passwd
# more /etc/group
You can use SAM to change the UID of an account (user) in a round-about, but safe way. First create a new, temporary account. The name doesn't matter. Next, request the deletion of the old user account. SAM will ask you what you want to do with the files owned by the account you are deleting. Choose the option to "adopt" those files by the new temporary user. Then add back the "real" user with the original name, but specify the UID you want to use. Now delete the temporary account, transferring the files owned by it to the "real" account. You can do this repetetively.
Hopefully this helps.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 01:17 AM
11-06-2000 01:17 AM
Re: sync users on multiple HP boxes
a cleanly formatted list of user, userid
and gid on a system:
awk 'FS=":" {printf ("%-12s%6d%6dn",$1,$3,$4)}' < /etc/passwd
This will be a bit easier for human reading.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 01:19 AM
11-06-2000 01:19 AM
Re: sync users on multiple HP boxes
The backquote has been dropped at the end
of the format string - before the "n"
Command should read (hopefully)
awk 'FS=":" {printf ("%-12s%6d%6d\n",$1,$3,$4)}' < /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2000 07:49 AM
11-06-2000 07:49 AM
Re: sync users on multiple HP boxes
It's a small hurdle to get everything up and running initially, but a great investment in the long run, as it becomes a snap to add and maintain user accounts in the future. 'Installing and Administering NFS Services' (the HP system documentation, viewable at http://docs.hp.com under the 'Networking and Communications' section) made a handy reference while I was getting up to speed.