Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by tcf22 (Priest)
on Apr 09, 2004 at 18:15 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://343978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found