Review zabbix user and group configuration

This commit is contained in:
Alexey Pustovalov
2020-12-19 12:18:00 -05:00
34 changed files with 240 additions and 155 deletions

View File

@ -12,10 +12,13 @@ STOPSIGNAL SIGTERM
ENV TINI_VERSION=v0.19.0
RUN set -eux && \
groupadd -g 1995 --system zabbix && \
adduser -r --shell /sbin/nologin \
groupadd --system --gid 1995 zabbix && \
useradd \
--system --comment "Zabbix monitoring system" \
-g zabbix -G root \
-d /var/lib/zabbix/ -u 1997 \
--uid 1997 \
--shell /sbin/nologin \
--home-dir /var/lib/zabbix/ \
zabbix && \
mkdir -p /etc/zabbix && \
mkdir -p /var/lib/zabbix && \