From 4dc619264014eb4948b7acd17498450ba4836951 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Wed, 2 Apr 2025 13:13:09 +0200 Subject: [PATCH] infra/image/shcontainer: Ensure '/ect/shadow' is readable The shadow file in a Fedora or CentOS Stream container is not readable any more using Ubuntu 24.04. An extra call to ensure that the shadow file is readable again has been added to container_start. --- infra/image/shcontainer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/image/shcontainer b/infra/image/shcontainer index a2d36c65..636cd678 100644 --- a/infra/image/shcontainer +++ b/infra/image/shcontainer @@ -47,6 +47,8 @@ container_start() { log info "= Starting ${name} =" podman start "${name}" + # Ensure /etc/shadow is readable + podman exec "${name}" bash -c "chmod u+r /etc/shadow" echo } -- GitLab