mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-23 13:20:52 +01:00
Review zabbix user and group configuration
This commit is contained in:
parent
62aa810a87
commit
fe7c1440fd
@ -10,12 +10,16 @@ LABEL org.opencontainers.image.title="Zabbix agent 2" \
|
||||
STOPSIGNAL SIGTERM
|
||||
|
||||
RUN set -eux && \
|
||||
addgroup -S -g 1995 zabbix && \
|
||||
adduser -S \
|
||||
-D -G zabbix -G root \
|
||||
-u 1997 \
|
||||
-h /var/lib/zabbix/ \
|
||||
addgroup --system --gid 1995 zabbix && \
|
||||
adduser --system \
|
||||
--gecos "Zabbix monitoring system" \
|
||||
--disabled-password \
|
||||
--uid 1997 \
|
||||
--ingroup zabbix \
|
||||
--shell /sbin/nologin \
|
||||
--home /var/lib/zabbix/ \
|
||||
zabbix && \
|
||||
adduser zabbix root && \
|
||||
mkdir -p /etc/zabbix && \
|
||||
mkdir -p /etc/zabbix/zabbix_agentd.d && \
|
||||
mkdir -p /var/lib/zabbix && \
|
||||
|
Loading…
Reference in New Issue
Block a user