3 ms·
Apache also uses the start user to read stuff like TLS private keys, that its normal user does not have access to.
by marcosdumay 5y ago
Apache also uses the start user to read stuff like TLS private keys, that its normal user does not have access to.
- VTimofeenko 5y agoIt's possible to remove the root requirement for this through systemd's credentials mechanisms: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Credentials https://www.freedesktop.org/software/systemd/man/systemd.exe...
- deleted 5y ago[deleted]
- ikiris 5y agoWhich is the right way to have it link to a proper credential management system via tokens.
- Already__Taken 5y agoI seriously a few hours trying to find a way to do this and didn't once come across this mechanism, now that I've read it in still not sure how to use it. why is systemd so adverse to writing examples
- VTimofeenko 5y agoI find this blogpost is a great example of code paired with systemd configuration for the certs: https://mgdm.net/weblog/systemd/ https://mgdm.net/weblog/systemd/
- ape4 5y agoAnd I think its common for the log files to be in /var/log/httpd owned by root but I suppose they could be moved and chown-ed.
- eliaspro 5y agoUsing systemd's LogDirectory= directive will fully take care of ensuring the required directory is present and permissions match the defined User=/Group= of the unit.