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

logrotate has no permit to rotate the log files in /logs #4

Open
lowang-bh opened this issue Jun 21, 2024 · 1 comment
Open

logrotate has no permit to rotate the log files in /logs #4

lowang-bh opened this issue Jun 21, 2024 · 1 comment

Comments

@lowang-bh
Copy link

error: skipping xxx because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation

@srstrickland
Copy link

srstrickland commented Jul 4, 2024

FYI I just ran into the same issue, and came here to see if anyone else had too (or had a solution). Seems like there could be an easy fix to this project, but in the meantime an init container does the trick:

initContainers:
  - name: init-permissions
    image: busybox:latest
    command: ['sh', '-c', 'chmod 755 /logs']
    volumeMounts:
      - name: whatever
        mountPath: /logs

But perhaps the better suggestion is to use the very similar and more flexible: https://github.com/blacklabelops/logrotate

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