Try using /usr/ucb/groups instead of /bin/groups.
On Thu, 17 Aug 1995, Joe Ramus wrote:
> Date: Thu, 17 Aug 95 11:01:02 PDT
> From: Joe Ramus <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Pagsh query
>
> On some of our systems, we have an AFS client but we cannot use the
> AFS Login program due to other requirements. This means that a user
> on such a system does not automatically have a pagsh.
>
> We have a Perl code that checks for a pagsh and returns True or False.
> This all works fine on SunOS 4.x, HP-UX, and DEC OSF/1 systems.
> We use the output of the "groups" command to check for a pagsh.
> The ouput looks like this if I am under a pagsh.
>
> %% groups
> 33536 32787 ccc nisg
>
> Now we have some new Sun Solaris 2.4 systems and the output of "groups"
> no longer has those 5 digit numbers. Hence the question:
>
> Is there some way to query the system to find out if I am running
> under a pagsh?
>
> We could use either a command or a C function call to get the information.
>
> ----------------------------------------------------------------
> | Joe Ramus NERSC Livermore (510) 423-8917 [EMAIL PROTECTED] |
> ----------------------------------------------------------------
>
--
=== ===
Jeremy McCarty ||||=|=||||=|, Voice: (219) 631-8843
Office of University Computing || = = = || Fax: (219) 631-8201
University of Notre Dame || = = = || Internet: [EMAIL PROTECTED]
G011 CCMB / 342 DeBartolo Hall ||||=||||=|=|' Alt: [EMAIL PROTECTED]
Notre Dame, IN 46556 === ==