From 5ed077cba4d1c5f627c3d5a2d803105ef2416240 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Wed, 2 Oct 2024 12:11:28 +0200 Subject: [PATCH] Fix group and mode of /var/log/journal This updates the group and mode set on the /var/log/journal directory to match default ownership and permissions used by systemd-journald. Closes-Bug: #2083494 Change-Id: I15323b95199b9ef19504c7408dd89720f9ba9c32 --- ansible/logging.yml | 4 ++-- .../fix-var-log-journal-group-mode-3e7c4c822d050c8f.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix-var-log-journal-group-mode-3e7c4c822d050c8f.yaml diff --git a/ansible/logging.yml b/ansible/logging.yml index 326fe66d8..801ee3a72 100644 --- a/ansible/logging.yml +++ b/ansible/logging.yml @@ -18,8 +18,8 @@ file: path: /var/log/journal owner: "root" - group: "root" - mode: 0755 + group: "systemd-journal" + mode: 02755 state: directory notify: Flush journal to disk when: journald_storage == "persistent" diff --git a/releasenotes/notes/fix-var-log-journal-group-mode-3e7c4c822d050c8f.yaml b/releasenotes/notes/fix-var-log-journal-group-mode-3e7c4c822d050c8f.yaml new file mode 100644 index 000000000..1c9e1d444 --- /dev/null +++ b/releasenotes/notes/fix-var-log-journal-group-mode-3e7c4c822d050c8f.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Updates the group and mode set on the ``/var/log/journal`` directory to + match default ownership and permissions used by ``systemd-journald``. + `LP#2083494 `__