in reply to dropping from root to lower user

Read perldoc pervar and look for info on $< and $(. They are settable.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: dropping from root to lower user
by rob_au (Abbot) on Jun 15, 2003 at 12:23 UTC
    The only caveat which I would add to this is that these variables - $<, $>, $( and $) - can only be set on machines that support the underlying set[re][ug]id() routines.

     

    perl -le 'print+unpack"N",pack"B32","00000000000000000000001001101010"'