Project

General

Profile

[Solved] /run/lighttpd keeps being re-created as www-data despite modifying /etc/lighttpd/lighttpd.conf and /etc/init.d/lighttpd to use pi.

Added by comeradealexi 3 months ago

Every time I reboot my Raspberry Pi, the owner of the folder changes to be www-data. Despite there being no mention of www-data in the files mentioned in the title.

The references to www-data in the files have now been changed to pi.

If I manually, one booted change the folder owner to Pi, the lighttpd will start successfully. But upon reboot, it always changes back.

I'm not sure if I'm just misunderstanding how things should work, but I've even commented out the 'install' line in init.d/lighttpd and after a reboot the folder reappears with the www-data permissions. I'm so confused!

Any help would be greatly appreciated.

Alex


Replies (1)

RE: /run/lighttpd keeps being re-created as www-data despite modifying /etc/lighttpd/lighttpd.conf and /etc/init.d/lighttpd to use pi. - Added by comeradealexi 3 months ago

Think I've got it!

Inside /usr/lib/tmpfiles.d/lighttpd.tmpfile.conf it has the following command:

d /var/run/lighttpd 0750 www-data www-data -

    (1-1/1)