[pkg-lighttpd] Bug#597643: Bug#597643: lighttpd: Permissions break on upgrade when running as non www-data user
Olaf van der Spek
olafvdspek at gmail.com
Tue Sep 21 16:32:57 UTC 2010
On Tue, Sep 21, 2010 at 5:43 PM, Jon Daley <debian at jon.limedaley.com> wrote:
> That all works fine, however, I upgraded the other day, and the upgrade script must include a
> chown -R www-data.www-data /var/log/lighttpd and
> chmod -R wwww-data.www-data /var/cache/lighttpd
Don't chmod/chown system-owned dirs, use other dirs. ;)
> as everything broke after the upgrade.
> The log directory was easy to spot, but I didn't notice that the cache permissions had been reset until I was debugging a 413 Request Too Large error, which turned out to be the
> permissions were wrong and nothing to do with the size of the request.
Might be worth to file a bug report (upstream).
> Perhaps the chown should only happen on install, and not on upgrade?
> Or maybe check the server.username/group?
> Or at least warn the user that you are changing permissions, so he can manually put them back.
More information about the pkg-lighttpd-maintainers