From 7a04c31723696b583b746bbb67e5a9d002fc0afe Mon Sep 17 00:00:00 2001 From: Antonio Torres Date: Mon, 19 Feb 2024 11:02:01 +0100 Subject: [PATCH] Containerfile.test: add apache user to SSSD group We previously didn't do this in test image because it was based on Fedora, but since the switch to CentOS it's needed again. This change also makes the testing image equal to the production image, except for the base image being CentOS instead of RHEL. Signed-off-by: Antonio Torres --- Containerfile.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile.test b/Containerfile.test index ff39fd6..fcc76e8 100644 --- a/Containerfile.test +++ b/Containerfile.test @@ -85,7 +85,7 @@ COPY prod/conf/ipatuura.conf /etc/httpd/conf.d/ipatuura.conf # Setup permissions for apache user RUN echo 'apache ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/apache -RUN usermod -a -G root apache +RUN usermod -a -G sssd,root apache RUN chmod -R 770 /etc/sssd RUN chmod 740 /www/ipa-tuura/src/ipa-tuura/ RUN chown apache:apache /www/ipa-tuura/src/ipa-tuura/