[PATH] -g option for httpd and default user

Thaddeus Ternes tternes at gmail.com
Mon Oct 2 13:22:15 PDT 2006


start-stop-daemon also provides "run as" functionality now as well.

I'd agree with Denis... putting this kind of functionality in every
applet is a bit overkill I think.

-Thaddeus

On 10/2/06, Denis Vlasenko <vda.linux at googlemail.com> wrote:
> On Monday 25 September 2006 19:58, Luciano Miguel Ferreira Rocha wrote:
> >
> > Hello,
> >
> > The attached patch changes httpd in the following ways when
> > CONFIG_FEATURE_HTTPD_SETUID is set:
> >
> > 1. -u now also sets the group id (from pwent->pw_gid, if found, else
> >    same as uid)
>
> Same as uid? Rationale?
>
> > 2. new -g option, defining new group id
> > 3. setgid and setuid are always called, even in the absence of -u/-g,
> >    and a new option for defining the default was added. Default is "-1".
>
> Why they are always called? What if I want to run httpd under
> current user/group?
>
> More general question: why does httpd needs -u AT ALL?
> Should we add similar options to all other daemons now?
> Obviously not, setuidgid utility handles that just fine:
>
> setuidgid apache httpd -opt
>
> Or chpst from runit... (/me needs to merge that...)
>
> Note that httpd.c has been reformatted. I am attaching
> one from svn for your easy reference.
> --
> vda
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
>
>


More information about the busybox mailing list