Uploaded image for project: 'Z-Push'
  1. Z-Push
  2. ZP-1431

Z-Push logrotate cron su file permissions

    Details

    • Type: Bug
    • Status: QA
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.4.2
    • Fix Version/s: 2.4.3 beta 1, 2.4.3
    • Component/s: None
    • Security Level: Public (Everyone)
    • Labels:
      None

      Description

      We just upgraded from Z-Push 2.3.8 to 2.4.2 and started receiving the following logrotate error messages.

      {{ Subject: Anacron job 'cron.daily'}}

      /etc/cron.daily/logrotate:

      error: skipping "/var/log/z-push/autodiscover-error.log" 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.

      {{error: skipping "/var/log/z-push/autodiscover.log" 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. }}

      error: skipping "/var/log/z-push/z-push-error.log" 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.

      error: skipping "/var/log/z-push/z-push.log" 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.

       

      Easy fix, added one line to /etc/logrotate/z-push.lr file.

      su root z-push

      The new z-push package changed log file permissions in /var/log/z-push/ .

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mattc Matt Christian
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: