I’m running some static sites on my homelab raspberry pi using Lighttpd for the webserver.
I’m wondering what is the best practice for user permissions, I can’t find super clear guidance on how to handle users, groups and permissions in the
After installing Lighttpd in RaspberryOS, all those folders were “root:root” including
/var/www/html. I decided that I would run my static sites in sub directories under
/var/www/html as an example I’m serving a site created with Docsify under
I would like to be able to update
/var/www/html/docs by running a simple
rsync script that copies the Markdown files and the updated
index.html file from my workstation to the Raspberry Pi. So I have made
/var/www/html/docs user and group the main Pi user and group. I don’t think this opens up security issues, but I’m wondering if this is the best practice or if there are better ways to handles this.