I am writing a new daemon, which will be hosted on Debian Linux.
I found that the root in / var / log only has write permissions, so my daemon can not write log files.
However, if it is written there, it can be expected that it will receive automatic log rotation, and it will also serve as a user.
What is the recommended method for writing log entries, which appears in / var / log without running as root?
Daemon is a webserver, so log traffic will be like Apache.
You have a subdirectory such as / var / log / mydaemon
daemon's user ownership
Comments
Post a Comment