in reply to Perl script needs root privilegies
I'd personally use the sudo approach that ivanatora recommended, but there are other ways of achieving the same result.
Each one of these suggestions has additional problems -- the first one, some other process might connect; the second has a directory writable by 'nobody', which means all scripts on the webserver; the third one will need the script protected so no one modifies it.
You can mitigate some of the concerns by using suEXEC or CGIwrap on the webserver. (both of which allow cgis to be run as someone other than the webserver's default user)
|
|---|