Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 learning in the Monastery: (5)
As of 2024-04-19 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found