Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by bingos (Vicar)
on Dec 17, 2010 at 12:21 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://877631]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found