Added by comeradealexi over 6 years 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
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 -