Skip to content

Commit

Permalink
Containerfile.test: add apache user to SSSD group
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
antoniotorresm authored and f-trivino committed Feb 20, 2024
1 parent e6108a3 commit 7a04c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Containerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 7a04c31

Please sign in to comment.