]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/run0: Describe environment variables set (#32622)
authorThayne McCombs <astrothayne@gmail.com>
Sat, 4 May 2024 11:06:16 +0000 (05:06 -0600)
committerGitHub <noreply@github.com>
Sat, 4 May 2024 11:06:16 +0000 (12:06 +0100)
* man/run0: Describe environment variables set

man/run0.xml

index 478af8a90b3530664fea9ce2d294c49b7f5a2b6c..c9be24da98031d0ffe34747477642c7807530d69 100644 (file)
     non-zero return value will be returned.</para>
   </refsect1>
 
+  <refsect1>
+    <title>Environment Variables</title>
+
+    <para>As with <command>systemd-run</command>, the session will inherit the system
+    environment from the service manager. In addition, the following environment variables will be set:</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><varname>$TERM</varname></term>
+        <listitem><para>Copied from the <varname>$TERM</varname> of the caller. Can be overriden with <option>--setenv=</option></para>
+
+        <xi:include href="version-info.xml" xpointer="v256"/></listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><varname>$SUDO_USER</varname></term>
+        <listitem><para>Set to the username of the originating user.</para>
+
+        <xi:include href="version-info.xml" xpointer="v256"/></listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><varname>$SUDO_UID</varname></term>
+        <listitem><para>Set to the numeric UNIX user id of the originating user.</para>
+
+        <xi:include href="version-info.xml" xpointer="v256"/></listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><varname>$SUDO_GID</varname></term>
+        <listitem><para>Set to the primary numeric UNIX group id of the originating session.</para>
+
+        <xi:include href="version-info.xml" xpointer="v256"/></listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+
   <refsect1>
     <title>See Also</title>
     <para><simplelist type="inline">