Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: setuid and setgid leaves user in 0 (wheel) groupby bingos (Vicar) |
on Dec 17, 2010 at 12:21 UTC ( [id://877631]=note: print w/replies, xml ) | Need Help?? |
According to perlvar for $): The first number sets the effective gid, and the rest (if any) are passed to setgroups(). To get the effect of an empty list for setgroups(), just repeat the new effective gid So:
The following code on my machine (NetBSD):
Produces:
In Section
Seekers of Perl Wisdom
|
|