4 ms·
Does anyone have a trick for connecting to remote hosts as a non-root user but having it elevate to root to read the logs?
by lathiat 4y ago
Does anyone have a trick for connecting to remote hosts as a non-root user but having it elevate to root to read the logs?
- prmoustache 4y agoFor systemd/journald managed log, best is to add non privileged user to the systemd-journal group. For logs managed by syslog daemons, most implementations allows you to set the owner and group of the log files. You could decide on a specific log group and add the desired dedicated user to this group. In the end it is usually better to ship the logs to a dedicated machine/space/database.