On Thu, 17 Aug 1995, Joe Ramus wrote:
> 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?
>
For Solaris, make sure you run /usr/ucb/groups rather than
/usr/bin/groups and you will get the pair of numbers.
- Mike
----------------------------------------------------------------------------
Mike Burns UNIX Systems Group
[EMAIL PROTECTED] Center for Academic Computing
(814) 863-5606 The Pennsylvania State University