Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: EUID cannot be set

by AK108 (Friar)
on May 10, 2007 at 03:18 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://614529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2024-04-25 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found