Skip to content

Commit

Permalink
man/run0: Describe environment variables set (systemd#32622)
Browse files Browse the repository at this point in the history
* man/run0: Describe environment variables set
  • Loading branch information
tmccombs committed May 4, 2024
1 parent 568d979 commit 7df0297
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions man/run0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,43 @@
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">
Expand Down

0 comments on commit 7df0297

Please sign in to comment.