Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Fetching groups a user is in

by druud (Sexton)
on Dec 22, 2006 at 00:06 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://591231]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-23 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found