Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Fetching groups a user is in

by druud (Sexton)
on Dec 22, 2006 at 00:06 UTC ( #591231=note: print w/ replies, xml ) Need Help??


in reply to Re: Fetching groups a user is in
in thread Fetching groups a user is in

I saved the code as gpu.pl and ran it for some users:

$ gpu.pl root 0 2 3 4 5 20 31 0 $ gpu.pl rvtol $ id -Gn rvtol user
With root, group 0 is reported twice. With rvtol, group user (30) isn't reported.

-- 
Regards, Ruud


Comment on Re^2: Fetching groups a user is in
Download Code
Re^3: Fetching groups a user is in
by apotheon (Deacon) on Dec 22, 2006 at 03:37 UTC

    Interesting. Any idea why?

    print substr("Just another Perl hacker", 0, -2);
    - apotheon
    CopyWrite Chad Perrin

      It's on a (FreeBSD) shell at my ISP, that runs in a (modified) yp (nis). So "shadow password maps". See ypserv(8).

        Ah . . . nonstandard setup makes me feel better about it not working properly.

        print substr("Just another Perl hacker", 0, -2);
        - apotheon
        CopyWrite Chad Perrin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-09-24 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (246 votes), past polls