Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Problems? Is your data what you think it is?
 
PerlMonks  

$< and setuid: quite different animals?

by saintmike (Vicar)
on Apr 10, 2010 at 05:01 UTC ( #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
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? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-04-19 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls