On Thu, 2006-01-19 at 22:25 -0500, Bob Rogers wrote: > Frequently I need to execute certain portions of the code (e.g that > creates files / directories) with the user's permission. I am not sure > how to do this in perl. Currently I am doing something like: > > I've never needed this myself, but if I did, I'd probably try $< and $>
I believe you'd want $> , the effective uid. A process running as root isn't permitted to change the real uid to another user and then back to root, so $< wouldn't work here unless you fork first. -- Jeremy _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

