Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Uchiwa RPM logrotate config ownership/mode are wrong #814

Open
bodgit opened this issue Mar 18, 2019 · 1 comment
Open

Uchiwa RPM logrotate config ownership/mode are wrong #814

bodgit opened this issue Mar 18, 2019 · 1 comment
Labels

Comments

@bodgit
Copy link

bodgit commented Mar 18, 2019

Expected Behavior

Logrotate should be rotating Uchiwa log files. This was reported and fixed in #765 however the fix has been lost.

Current Behavior

Logrotate currently ignores the Uchiwa config drop-in as it has the wrong mode owner and mode.

Possible Solution

RPM needs to set the logrotate config file as owner by root:root and mode 0644. Currently they are set as follows:

$  rpm -qlv uchiwa | grep logrotate
-rw-rw-r--    1 uchiwa  uchiwa                    144 Feb 27 21:46 /etc/logrotate.d/uchiwa

Steps to Reproduce (for bugs)

  1. logrotate -d /etc/logrotate.conf produces error: Ignoring uchiwa because of bad file mode - must be 0644 or 0444.
  2. Fix file mode to be 0644
  3. logrotate -d /etc/logrotate.conf now produces Ignoring uchiwa because the file owner is wrong (should be root).
  4. Change ownership to root:root
  5. logrotate -d /etc/logrotate.conf no longer ignores uchiwa config

Your Environment

  • Uchiwa version used: 1.6.0
  • Operating System and version (e.g. Ubuntu 14.04): EL7
@annaplotkin
Copy link

Investigate to ensure this is being done correctly and address if it is not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants