Re: How to run a cgi-script?
Hello Michiel, On Fri, 2 Jul 2004 10:35:02 +0200 (CEST) UTC, Michiel Boland wrote: >> Why doesn't RunScriptsAsOwner works? What do I do with setuid scripts? MB> As far as I know mathopd ignores the setuid bit, unless perhaps the MB> script is a pure executable CGI program. I have qmailadmin working fine, but that's an executable CGI program. Haven't tested a CGI script with the setuid bit set. Thanks. -- Regards, Charles.
Re: How to run a cgi-script?
Hello Juergen, On Fri, 2 Jul 2004 08:50:39 +0200 UTC, Juergen Daubert wrote: JD> Keyword: ScriptUser JD>... JD>The user specified by ScriptUser must be someone else than the JD>'global' user, i.e. the user specified by the User keyword. Oops :S. It's working fine now. -- Regards, Charles.
Re: How to run a cgi-script?
> Why doesn't RunScriptsAsOwner works? What do I do with setuid scripts? RunScriptsAsOwner should work, as long as the user IDs of the script's owner and the server process are different. Setuid scripts are an apache-hack I believe. As far as I know mathopd ignores the setuid bit, unless perhaps the script is a pure executable CGI program. Cheers Michiel
Re: How to run a cgi-script?
Juergen Daubert wrote:
GLOBAL:
User www
StayRoot On
Server::Virtual::Control {
Alias cgi-bin
Location /path/to/cgi-bin
ScriptUser www
Specials {
CGI { * }
}
}
Quote from config.txt:
Keyword: ScriptUser
...
The user specified by ScriptUser must be someone else than the
'global' user, i.e. the user specified by the User keyword.
Why doesn't RunScriptsAsOwner works? What do I do with setuid scripts?
--
Regards, Charles.
Re: How to run a cgi-script?
On Fri, Jul 02, 2004 at 02:05:25AM +0200, Charles M. Gerungan wrote:
> I keep getting 500 errors.
>
> mathopd is running under daemontools.
>
> In mathopd.conf, I have:
>
> GLOBAL:
> User www
> StayRoot On
>
> Server::Virtual::Control {
> Alias cgi-bin
> Location /path/to/cgi-bin
> ScriptUser www
> Specials {
> CGI { * }
> }
> }
Quote from config.txt:
Keyword: ScriptUser
...
The user specified by ScriptUser must be someone else than the
'global' user, i.e. the user specified by the User keyword.
Greetings
Juergen
--
[EMAIL PROTECTED]
