- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /tcb, passwd/group file(s) related question
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
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
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
08-09-2011 06:01 AM
08-09-2011 06:01 AM
The system is 11.23 and Trusted
Is there any means (ie: modprpw/pwck, grpck etc) other than shell script to check/verify that all GIDs in the passwd file also exist in the group file?
One of the admins found a GID in a passwd file that did not exist in the /etc/group file. This system was upgraded from 11.0 to 11i-v1 then v2. Users and groups have come and gone. The system has to my knowledge always used a Trusted env.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2011 06:12 AM
08-09-2011 06:12 AM
SolutionHi John:
I'm surprised that neither 'pwck' nor 'grpck' don't discover inconsistences. If not, a simply script to read the GID from '/etc/passwd' and query '/etc/group' would suffice.
Since your system is trusted, I would also run 'authck -p' (or 'pwck -s' which will do that for you).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2011 08:01 AM
08-10-2011 08:01 AM
Re: /tcb, passwd/group file(s) related question
According to what the admin told me, he manually deleted a group from the /etc/group file to test. No error/missing entries info was returned.
I emailed him a simple script to capture the group fields of /etc/passwd and grep/uniq/compare to the group file, which worked. I thought I remembered the pw/grp-ck cmds working, but for his case, they didn't.
Thx!