- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/group limitations
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
07-10-2003 12:10 PM
07-10-2003 12:10 PM
Is this accurate? I ran a system with thousands of users in a single group in HP-UX 10.20. I never had an issue with logins or group permissions. Where will this "hard limit" manifest itself? Is there a workaround for large systems with thousands of users?
Thanks,
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 12:17 PM
07-10-2003 12:17 PM
Re: /etc/group limitations
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x35f85f260cafd4118fef0090279cd0f9,00.html
The hard limit is: LINE_MAX is 2048
etc/group should have only secondary groups listed, NOT the primary group listed in /etc/passwd. So if you have very long lines with user logins listing their primary group, you can remove all of the logins and just leave the empty group line as in:
users::20:
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 12:22 PM
07-10-2003 12:22 PM
Re: /etc/group limitations
You would really only need to add many,many users to the group file if users can be members of multiple groups and you are then also using /etc/logingroup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 01:00 PM
07-10-2003 01:00 PM
Re: /etc/group limitations
Besides the line limit mentioned above, another limit applies.
No user can belong to more than 20 groups.
This is defined in /usr/include/limits.h as NGROUPS_MAX
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 01:17 PM
07-10-2003 01:17 PM
Re: /etc/group limitations
defined in
listed in their primary group - only in their additional groups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 01:55 PM
07-10-2003 01:55 PM
Solution1. Starting with 10.20 (possibly with patches), the default group listed in /etc/passwd does not have to be repeated in /etc/group. Thus, only additional group memberships are necessary for /etc/group. (and for the obsolete 10.20 release and earlier versions, there must be a link from /etc/group to /etc/logingroup to make alternate groups automatically active.
2. It is not necessary to list every user ID on a single line. You can put the same group ID on dozens or hundreds of lines and have just 8-12 logins per line:
apps::44:user1,user2,user3,user4,user5
apps::44:user6,user7,user8,user9,user10
and so on..
Bill Hassell, sysadmin