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

Uchiwa RPM logrotate config ownership/mode are wrong #814

Description

@bodgit

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions