Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by tcf22 (Priest)
on Apr 09, 2004 at 18:15 UTC ( #343978=note: print w/replies, xml ) Need Help??


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

This works for me:
my $grp = getgrgid((getpwnam("user"))[3]); print $grp;

- Tom

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2020-06-03 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (24 votes). Check out past polls.

    Notices?