in reply to EUID cannot be set

Your syntax for getting the variables is a bit odd. Shouldn't you be using something like this?
sub DropPriv { my($uid, $groups) = @_; $) = $groups; $> = $uid; # ... }

Replies are listed 'Best First'.
Re^2: EUID cannot be set
by 0xbeef (Hermit) on May 10, 2007 at 15:37 UTC
    You are right, I rewrote the relevant bits from memory and messed it up a bit - but in real life it looks like yours.

    Niel