[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] executing a root privileged cgi from a web page



> > I have a simple minded cgi that needs to run as root to create user
access
> > permissions on my MySQL database. I have set it up as root.site# and
then
> > tried to execute it from a web form. As would be expected (seems to be
my
> > big problem - permissions, ownership etc) it gives a cgiwrap error
saying
> > user not privileged. How can I set this up so I can run it and the cgi
can
> > run as a root user ?
> >
> Check out
> http://www.apache.org/docs/suexec.html
> But I don't know if cobalt compiles it in or not.
>
> Zeffie


Apache will not allow you to run a vhost with root permissions unless
compiled with a certain flag (something like --with-big-security-hole).

The admin webserver on Cobalt's may have been done this way, but I do not
know if you can configure it to run anything else besides the administration
scripts.  Plus you'd have to run it on port 81.

--
BC