Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting permissions for logged files #60

Closed
powerjungle opened this issue Dec 7, 2022 · 3 comments
Closed

Setting permissions for logged files #60

powerjungle opened this issue Dec 7, 2022 · 3 comments
Assignees

Comments

@powerjungle
Copy link

I couldn't find information on this anywhere. There's no mention of a way to change the permissions of the logged files and it seems impractical to do it externally. Are there plans to do it in the future or am I missing something?

I can just make /var/log not world readable, but some applications which are running as system users, can't access the directory this way.

@troglobit
Copy link
Owner

The sysklogd project tracks the *BSD implementations of syslogd, so no there is no such feature planned, which does not mean it's a bad idea.

What's been standard practice in UNIX systems is that the system administrator makes sure to create the log files before syslogd starts, then it just opens the files it knows about and appends the log message. However, since the sysklogd project has built-in support for log rotation, a bug was found and fixed in v2.4.0 that ensures that the new file created after rotation retains the original permissions.

I hope that answers your question. (We have a Discussions tab for this type of Q&A things, I could convert this to that if you're happy with the reply.)

@powerjungle
Copy link
Author

Yeah that makes sense. Seems like a good idea to add this information to the man file as well. Thank you for the quick response!

@troglobit
Copy link
Owner

np, will update the man pages accordingly.

@troglobit troglobit self-assigned this Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants