Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: setuid and setgid leaves user in 0 (wheel) group

by bingos (Vicar)
on Dec 17, 2010 at 12:21 UTC ( #877631=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $) = "$gid $gid";
    
  2. or download this
    use strict;
    use warnings;
    ...
    setuid( $uid ); $> = $uid; $< = $uid; die "Set user ($uid): $!"
      if ( $< != $uid ) or ( $> != $uid );
    print `id`;
    
  3. or download this
    uid=32767(nobody) gid=32766(nogroup) groups=32766(nogroup)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2021-04-15 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?