Bug 26615 - Logrotate-Konfigurationsdateien korrigiert Dateirechte nicht mehr
Summary: Logrotate-Konfigurationsdateien korrigiert Dateirechte nicht mehr
Status: RESOLVED WONTFIX
Alias: None
Product: UCS
Classification: Unclassified
Component: logrotate
Version: UCS 3.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UCS maintainers
QA Contact:
URL:
Keywords:
Depends on: 18002
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-26 16:19 CEST by Philipp Hahn
Modified: 2017-08-08 07:07 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Troubleshooting
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-03-26 16:19:39 CEST
+++ This bug was initially created as a clone of Bug #18002 +++

Bis UCS-2.4 gab es in /etc/logrotate.conf eine Sammel-Konfiguration für alle /var/log/univention/*.log-Dateien, die mit Bug #18002 entfernt und auf die einzelnen Pakete mit aufgeteilt wurde. Dadurch ist aber auch folgendes verloren gegangen:
        lastaction
                test -x /usr/sbin/univention-set-logfile-permissions && /usr/sbin/univention-set-logfile-permissions || true
...
        endscript
Das führt jetzt dazu, daß einige Logfiles für alle lesbar sind bzw. nicht der Gruppe adm angehören. logrotate übernimmt dadurch den Owner/die Gruppe/Rechte von der umbenannten Originaldatei für die neue Leerdatei, so daß auch diese wieder die falschen Zugriffsrechte haben.

Ein "git grep" hat gezeigt, daß univention-set-logfile-permissions zwar noch installiert, aber nirgendwo aufgerufen wird.
Das sollte aber mindestens einmalig nach der Installation, oder auch wieder durch logrotate ausgeführt werden.


Dies wurde durch ucs-test/00_base/26check_logfiles_general festgestellt.
Comment 1 Stefan Gohmann univentionstaff 2017-06-16 20:39:33 CEST
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4.

If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Comment 2 Stefan Gohmann univentionstaff 2017-08-08 07:07:53 CEST
This issue has been filed against UCS 3.0.

UCS 3.0 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.