man: document default for User=
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Oct 2016 21:40:31 +0000 (23:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Oct 2016 11:21:25 +0000 (13:21 +0200)
Replaces: #4375

man/systemd.exec.xml

index 7453aa7..dbe4594 100644 (file)
         <term><varname>Group=</varname></term>
 
         <listitem><para>Set the UNIX user or group that the processes are executed as, respectively. Takes a single
-        user or group name, or numeric ID as argument. If no group is set, the default group of the user is used. This
-        setting does not affect commands whose command line is prefixed with <literal>+</literal>.</para></listitem>
+        user or group name, or numeric ID as argument. For system services (services run by the system service manager,
+        i.e. managed by PID 1) and for user services of the root user (services managed by root's instance of
+        <command>systemd --user</command>), the default is <literal>root</literal>, but <varname>User=</varname> may be
+        used to specify a different user. For user services of any other user, switching user identity is not
+        permitted, hence the only valid setting is the same user the user's service manager is running as. If no group
+        is set, the default group of the user is used. This setting does not affect commands whose command line is
+        prefixed with <literal>+</literal>.</para></listitem>
       </varlistentry>
 
       <varlistentry>