- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: maximum number of groups a user can belong to
Operating System - HP-UX
1748040
Members
4556
Online
108757
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-2005 01:53 PM
тАО08-09-2005 01:53 PM
Hi all,
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
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.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
do this:
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
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
hello
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 03:23 PM
тАО08-09-2005 03:23 PM
Solution
NGROUPS_MAX = 20 + Max number of supplementary groups per process
In 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) = 20. It can be done by typing:
# 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.
In 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.
Kamal Mirdad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
Hi
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
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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP