Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

$< and setuid: quite different animals?

by saintmike (Vicar)
on Apr 10, 2010 at 05:01 UTC ( [id://833950]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $uid = getpwnam("nobody");
    $< = $uid;
    
  2. or download this
    $< = $uid;
    $> = $uid;
    
    $> = 0;
    $< = 0;
    
  3. or download this
    $ sudo strace ./switchback 2>&1 | grep '^set'
    setreuid32(99, -1)                      = 0
    setresuid32(-1, 99, -1)                 = 0
    setresuid32(-1, 0, -1)                  = 0
    setreuid32(0, -1)                       = 0
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://833950]
Approved by wfsp
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found