Make freshclam runnable by low priv user

This commit is contained in:
TKE
2021-01-12 15:18:20 +01:00
parent 44ac8c4813
commit a6730669be

View File

@@ -25,6 +25,9 @@ RUN chmod +x /start.sh
#customize clamav config
RUN sed -ie 's/#DetectPUA yes/DetectPUA yes/p' /etc/clamav/clamd.conf
RUN sed -ie 's/#AlertOLE2Macros yes/AlertOLE2Macros yes/p' /etc/clamav/clamd.conf
#make freshclam suid so user can run it
RUN chown root /usr/bin/freshclam
RUN chmod u+s /usr/bin/freshclam
#add user
RUN addgroup -g ${PGID} user && \
adduser -D -u ${PUID} -G user user