http://www.perlmonks.org?node_id=591231


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