[sf-perl] How to get cgi program to invoke another program as a specific non-privileged user

David Alban extasia at extasia.org
Sat May 19 20:40:11 PDT 2007


Yeah, there are any number of workarounds I could do like this,
thanks.  I'm going to try to go with setuid unless I can't get it to
work...

On 5/19/07, Ray Baxter <ray at warmroom.com> wrote:
> 1) Have the cgi touch a file.
>
> 2) Have the build script user run a cron job every few minutes. Check to
> see if the sentinel file exists and that there is not a build in
> process, then delete the file and start the build.
>
> Elaborations on this idea: put the e-mail or other user id in the
> sentinel file. Check to see if that user has permission to request a
> build if that makes sense. Send them e-mail when the build is completed.
> Allow for the possibility that two users will have requested a build
> since the last build.

-- 
Live in a world of your own, but always welcome visitors.


More information about the SanFrancisco-pm mailing list