Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 lurking in the Monastery: (6)
As of 2021-01-25 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?