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

Re: EUID cannot be set

by AK108 (Friar)
on May 10, 2007 at 03:18 UTC ( #614529=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://614529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2020-11-30 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?