summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-06-19 02:48:05 -0400
committerMalfurious <m@lfurio.us>2024-06-30 02:11:54 -0400
commit02da95230612c5ae7a31587b31eca7a8c9a05ce0 (patch)
tree27fab0b313330d52af2db4ea3b6065dac83bec12
parent3d6aa13235e404c5b23fc65d41ac1f607175d7f8 (diff)
downloadmailnode-02da95230612c5ae7a31587b31eca7a8c9a05ce0.tar.gz
mailnode-02da95230612c5ae7a31587b31eca7a8c9a05ce0.zip
Don't useradd --system accounts
Removing this option causes the UIDs and GIDs to match, which is desirable since GIDs have not yet been predictable. The other differences with --system don't matter for our purposes. Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 55b4e01..f79830a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,20 +6,20 @@ ENV DEBIAN_FRONTEND=noninteractive
# Create system users with fixed, well-known UID/GIDs
RUN useradd \
- --uid 2000 --system \
+ --uid 2000 \
--shell /usr/sbin/nologin \
--home-dir /var/mail/vhost \
--skel /dev/null --create-home \
vmailbox
RUN useradd \
- --uid 2001 --system \
+ --uid 2001 \
--shell /usr/sbin/nologin \
--home-dir /var/spool/postfix \
postfix
RUN useradd \
- --uid 2002 --system \
+ --uid 2002 \
--shell /usr/sbin/nologin \
--home-dir /var/spool/mlmmj \
--skel /dev/null --create-home \