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

Wrong logrotate config perms #2242

Closed
OniriCorpe opened this issue Sep 9, 2023 · 1 comment
Closed

Wrong logrotate config perms #2242

OniriCorpe opened this issue Sep 9, 2023 · 1 comment
Labels
👾 bug Something isn't working

Comments

@OniriCorpe
Copy link
Member

Context

  • YunoHost version: 11.2.4 stable
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Some logrotate config files have wrong permissions
They’re writable by any user, so logrotate refuses using it
Maybe the logrotate helper changed its behavior, but this bug is present only on the most recent config files

Here, the first one is bad and the second one is good:

-rw-rw-rw- 1 root root  584  3 sept. 18:10 gotosocial__3
-rw-r--r-- 1 root root  579 21 déc.   2022 hydrogen

To reproduce

sudo logrotate -f /etc/logrotate.d/gotosocial__3
error: Ignoring /etc/logrotate.d/gotosocial__3 because it is writable by group or others.

Expected behavior

Logrotate accepts the config file and do its job

@OniriCorpe OniriCorpe added the 👾 bug Something isn't working label Sep 9, 2023
@Tagadda
Copy link

Tagadda commented Sep 11, 2023

To intensify confusion, I can say that I have two apps installed between July 6th and July 28th that have similar permissions for logrotate.
And I installed gotosocial a few minutes ago and permissions was right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👾 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants