Zbigniew Jędrzejewski-Szmek 35bb94
From 88d84756b38bdac98e820ca1b17e0b3bf0ea7a25 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 35bb94
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Zbigniew Jędrzejewski-Szmek 35bb94
Date: Wed, 18 Oct 2017 15:30:00 +0900
Zbigniew Jędrzejewski-Szmek 35bb94
Subject: [PATCH] man: comment a requirement about the static user or group
Zbigniew Jędrzejewski-Szmek 35bb94
 when DynamicUser=yes
Zbigniew Jędrzejewski-Szmek 35bb94
Zbigniew Jędrzejewski-Szmek 35bb94
(cherry picked from commit 3bd493dc93e1be976fb9868c349a4711b97d2790)
Zbigniew Jędrzejewski-Szmek 35bb94
---
Zbigniew Jędrzejewski-Szmek 35bb94
 man/systemd.exec.xml | 5 ++++-
Zbigniew Jędrzejewski-Szmek 35bb94
 1 file changed, 4 insertions(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 35bb94
Zbigniew Jędrzejewski-Szmek 35bb94
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml
Zbigniew Jędrzejewski-Szmek 35bb94
index dfae0572d8..68291264bd 100644
Zbigniew Jędrzejewski-Szmek 35bb94
--- a/man/systemd.exec.xml
Zbigniew Jędrzejewski-Szmek 35bb94
+++ b/man/systemd.exec.xml
Zbigniew Jędrzejewski-Szmek 35bb94
@@ -206,7 +206,10 @@
Zbigniew Jędrzejewski-Szmek 35bb94
         enabled for a unit, the name of the dynamic user/group is implicitly derived from the unit name. If the unit
Zbigniew Jędrzejewski-Szmek 35bb94
         name without the type suffix qualifies as valid user name it is used directly, otherwise a name incorporating a
Zbigniew Jędrzejewski-Szmek 35bb94
         hash of it is used. If a statically allocated user or group of the configured name already exists, it is used
Zbigniew Jędrzejewski-Szmek 35bb94
-        and no dynamic user/group is allocated. Dynamic users/groups are allocated from the UID/GID range
Zbigniew Jędrzejewski-Szmek 35bb94
+        and no dynamic user/group is allocated. Note that if <varname>User=</varname> is specified and the static group
Zbigniew Jędrzejewski-Szmek 35bb94
+        with the name exists, then it is required that the static user with the name already exists. Similarly,
Zbigniew Jędrzejewski-Szmek 35bb94
+        if <varname>Group=</varname> is specified and the static user with the name exists, then it is required that
Zbigniew Jędrzejewski-Szmek 35bb94
+        the static group with the name already exists. Dynamic users/groups are allocated from the UID/GID range
Zbigniew Jędrzejewski-Szmek 35bb94
         61184…65519. It is recommended to avoid this range for regular system or login users.  At any point in time
Zbigniew Jędrzejewski-Szmek 35bb94
         each UID/GID from this range is only assigned to zero or one dynamically allocated users/groups in
Zbigniew Jędrzejewski-Szmek 35bb94
         use. However, UID/GIDs are recycled after a unit is terminated. Care should be taken that any processes running