Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-07-12 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.