- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: maximum number of groups a user can belong to
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
08-09-2005 01:53 PM
08-09-2005 01:53 PM
On HP-UX 11.23 (Itanium), what is the maximum number of groups a user can belong to? I remember on older versions of HP-UX, there was a limit to something like 20 or so. Is this still the case or has the maximum increased on 11.23?
Thanks all.
- Andrew Gray
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-09-2005 02:38 PM
08-09-2005 02:38 PM
Re: maximum number of groups a user can belong to
stdm901a:/usr/include/sys>getconf NGROUPS_MAX
20
This is hard coded and cannot be changed, HP realise this is a small issue - see this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=713127
hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-09-2005 03:23 PM
08-09-2005 03:23 PM
SolutionIn addition to the group specified in the /etc/passwd file for a login name, HP-UX (and other UNIX flavors) allows a user to belong to additional groups. The maximum is NGROUPS_MAX (defined in
# getconf NGROUPS_MAX
If you intend to increase that value, it is not so easy:
1. Change the value used by the kernel: in /usr/conf/h/param.h.
2. Rebuild the kernel.
Most of time, this will not work because all the commands are compiled with the old value. You can, of course, use your own programs (or try to recompile the commands if you work with Linux for example, where you have the full source code).
To have the benefit of that group feature, it is necessary to hard link /etc/group and /etc/logingroup:
# ln /etc/group /etc/logingroup
(By the way, â logingroupâ is also used by NIS).
For example, let's suppose that we have the three following entries in /etc/group:
bin::2:root,bin,jane
adm::4:root,adm,jane
users::20:bill,jane
From /etc/passwd, the user â janeâ has the group 300 (dev). If /etc/logingroup is linked to /etc/group, we have:
# id jane
uid=112(jane) gid=300(dev) groups=2(bin),4(adm),20(users)
It means that â janeâ has write permissions for the following file:
-rw-rw-r-- 1 root bin 91520 Jul 28 15:20 data1
because she belongs to the group â binâ as well. Likewise, it is easy to define a group â adminâ with some executable permissions:
Entry in /etc/group:
admin::350:carolyn,henry,jane,bill
Above users will be the only ones (+ root) to be able to run such a program:
---s--x--- 1 root admin 20345 Jan 2 15:20 tool1
with the root privileges and without knowing the root password. See Listing 3, too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-09-2005 06:39 PM
08-09-2005 06:39 PM
Re: maximum number of groups a user can belong to
Each user in a system belongs to at least one group. Users may belong to multiple groups, up to a limit of eight or 16. A list of all valid groups for a system are kept in /etc/group
Regards
Mahesh
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP