in reply to 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

Huh? I don't see any difference between my loop and yours...

All you've done is provide the opening of the file, which I left as an exercise for the student

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Retrieve unix group membership for a uid in a perl CGI
by kvale (Monsignor) on Apr 09, 2004 at 18:33 UTC
    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