1838381 Members
2850 Online
110125 Solutions
New Discussion

Re: NGROUPS

 
chin hyeon jung
Advisor

NGROUPS

HI,all
how many gid is included in one sid?
I have seen it depends on NGROUPS
But I don't know how to increase !
help me
3 REPLIES 3
Steve Steel
Honored Contributor

Re: NGROUPS

hi

You cannot change it

NGROUPS cannot be tunable, since current algorithms need its size must be known at kernel compilation and also libc and several other commands.


Steev Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
steven Burgess_2
Honored Contributor

Re: NGROUPS

Hi

The NGROUPS kernel parameter is the limit for the number of groups a user can belong to

To increase this you will need to ammend your kernel

#cd /stand/build

Create the kernel system file

#/usr/lbin/sysadm/system_prep -s system

Edit the system file and make the changes to NGROUPS

#vi system

Build the new Kernel

#/usr/sbin/mk_kernel -s ./system

backup the old kernel and system files

#mv /stand/system/ /stand.system.old
#mv /stand/vmunix /stand.vmunix.old

Install the new kernel

#cp /stand/build/system /stand
#cp /stand/build/vmunix_test /stand/vmunix

Reboot the system

#shutdown -r 0

Verify the change

#sysdef | grep NGROUPS

Hope this helps

Steve
take your time and think things through
steven Burgess_2
Honored Contributor

Re: NGROUPS

Hi

Sorry , have further checked steve's reply

From TKB document: UNX1100174

Problem Description

Is the maximum number of groups to which a user can belong simultaneously still limited to 20 (defined by NGROUPS) in HP-UX 11.0?

Solution

Yes, 20 groups per user is still
the limit at HP-UX 11.0.

sysdef | more

will show tunable parameters

Steve
take your time and think things through