Re: getgroup invalid argument in /var/adm/messages

From: Greg Wooledge (wooledg_at_eeg.ccf.org)
Date: 07/23/03

  • Next message: Ramin Dousti: "Re: getgroup invalid argument in /var/adm/messages"
    Date: Wed, 23 Jul 2003 15:20:03 -0400
    To: secureshell@securityfocus.com
    
    

    On Wed, Jul 23, 2003 at 01:20:34PM -0500, Schubert, John [NTWK SVCS] wrote:
    > To ask the next logical question: Where is the NGROUPS_MAX set

    It's compiled into the kernel, and the value can typically be discovered
    in a header file somewhere under /usr/include. For example, on HP-UX
    10.20:

    imadev:~$ find /usr/include -print | xargs grep NGROUPS_MAX
    /usr/include/sys/getaccess.h:#include <limits.h> /* just for NGROUPS_MAX */
    /usr/include/sys/unistd.h:# define _SC_NGROUPS_MAX 3 /* NGROUPS_MAX: Max # of simultaneous
    /usr/include/limits.h:# define _POSIX_NGROUPS_MAX 0 /* The number of simultaneous
    /usr/include/limits.h:# define NGROUPS_MAX 20 /* Maximum number of simultaneous

    > and the
    > number of groups the calling process is a member of?

    That's trickier, unless you're prepared to edit the source code and
    stick a system("/usr/bin/id"); in it. I can't think of any good way. :(


  • Next message: Ramin Dousti: "Re: getgroup invalid argument in /var/adm/messages"

    Relevant Pages

    • Re: [PATCH 06/14] DRBD: userspace_interface
      ... REL_VERSION and API_VERSION are used by the kernel code and drbdsetup, ... comment before the enum probably has to be changed to "KEEP the order, ... * on different endianess. ... even a dedicated header file defining those 4 external functions. ...
      (Linux-Kernel)
    • Re: Intel marginalizing Itanium even faster than expected?
      ... I would bet a lot more for BSD than ... And the point I was making is that they already do this for both HP-UX ... and VMS. ... Both of which are much harder to find truly guru status kernel ...
      (comp.os.vms)
    • Re: ndis problem with stable kernel source
      ... >>I then copied it to the compile directory of my kernel. ... >>didn't produce a different header file. ... and did a new cvsup tonight. ... >Make sure your userland and kernel are in sync - ie install world to match ...
      (freebsd-stable)
    • Re: [PATCH 1/2] Dynamic Tick: Prevent clocksource wrapping during idle
      ... into a header file. ... The dynamic tick allows the kernel to sleep for periods longer ... kernel can sleep for a given clocksource and function called ... extern void update_xtime_cache; ...
      (Linux-Kernel)
    • Re: Tru64 file system source code now open source
      ... Does the DEC Unix file system still have an edge over ... but couldn't port that from the Tru64 kernel to the HP-UX ...
      (comp.os.vms)