Re: Help: How do I get the lists of groups a unix user is in?
- From: Tad McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Thu, 9 Feb 2006 11:31:20 -0600
Brandon Hoppe <bhoppe@xxxxxx> wrote:
I need the list of groups that a user is in, similar to calling "groups" at a command prompt.
I've searched everywhere but haven't been able to find anything to do this in perl.
my @groups = `groups`;
or, my preference:
my @groups = qx/groups/;
--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.
- References:
- Help: How do I get the lists of groups a unix user is in?
- From: Brandon Hoppe
- Help: How do I get the lists of groups a unix user is in?
- Prev by Date: Re: Getting Values
- Next by Date: Re: Getting Values
- Previous by thread: Re: Help: How do I get the lists of groups a unix user is in?
- Next by thread: FAQ 6.20 Are Perl regexes DFAs or NFAs? Are they POSIX compliant?
- Index(es):
Relevant Pages
|