in reply to Re: Re: Re: Retrieve unix group membership for a uid in a perl CGI
in thread Retrieve unix group membership for a uid in a perl CGI

Not true. I added the username to the @groups, which your parse misses. My /etc/group file looks something like
kvale:x:501: cvs::502:kvale
with no kvale user at the end of the kvale group. Note my solution is just a hack, because giving each user their own group is the default on my system.

-Mark

  • Comment on Re: Re: Re: Re: Retrieve unix group membership for a uid in a perl CGI
  • Download Code