in reply to Re: forcing script to run as specific user
in thread forcing script to run as specific user

take a look at 'perldoc perlsec' for more info on setuid scripts. i believe you'll need to run the 'suidperl' binary to do what you want to do.

As there are numerous complications with setuid scripts and suidperl *, I would go for the sudo option mentioned above.

* See this entry in the perldelta manpage for 5.8.0 rc1:

After years of trying the suidperl is considered to be too complex to ever be considered truly secure. The suidperl functionality is likely to be removed in a future release.

-- Joost downtime n. The period during which a system is error-free and immune from user input.