[pkg-lighttpd] Bug#715205: Bug#715205: [lighttpd]: Running lighttpd as another user

Olaf van der Spek olafvdspek at gmail.com
Tue Jul 9 16:00:36 UTC 2013


On Tue, Jul 9, 2013 at 5:24 PM, Christophe-Marie Duquesne <chmd at chmd.fr> wrote:
> On Mon, Jul 8, 2013 at 9:27 PM, Olaf van der Spek <olafvdspek at gmail.com> wrote:
>> On Sun, Jul 7, 2013 at 12:49 AM, Christophe-Marie Duquesne <chmd at chmd.fr> wrote:
>>> TL;DR It would be nice if the init script was loading the user/group
>>> of lighttpd from a unique config file
>>
>> That'd only 'solve' a small part of the problem, wouldn't it?
>
> Well, provided the config file is doing the same thing, that would
> enable the user to modify the user/group in only one place. Apache

What would the init script do with the user/group? Init scripts don't
(or shouldn't) chown all files that are www-data now.

>> What's the reason for running Lighttpd as another user?
>
> Ahem... No real answer, apart from "because lighttpd theoretically
> allows me to do so". The option is there in the config file, so I
> would expect to be able to use it. To complement this non-answer, I'll

You are able to use it, but not without also changing other parts.

> say I find it handy to have lighttpd run as a "real" user that has a
> directory in /home. I can run other programs as this user, and modify
> files without having to care about umasks or default owner. I also
> like to have lighttpd being able to modify those files. But I guess
> this is a matter of taste.

You can run programs as www-data too, can't you?

-- 
Olaf



More information about the pkg-lighttpd-maintainers mailing list