From: Thayne McCombs Date: Sat, 4 May 2024 11:06:16 +0000 (-0600) Subject: man/run0: Describe environment variables set (#32622) X-Git-Tag: v256-rc2~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7df0297ac5aa784209d4c719c87fdd707a9f34cf;p=thirdparty%2Fsystemd.git man/run0: Describe environment variables set (#32622) * man/run0: Describe environment variables set --- diff --git a/man/run0.xml b/man/run0.xml index 478af8a90b3..c9be24da980 100644 --- a/man/run0.xml +++ b/man/run0.xml @@ -219,6 +219,43 @@ non-zero return value will be returned. + + Environment Variables + + As with systemd-run, the session will inherit the system + environment from the service manager. In addition, the following environment variables will be set: + + + + $TERM + Copied from the $TERM of the caller. Can be overriden with + + + + + + $SUDO_USER + Set to the username of the originating user. + + + + + + $SUDO_UID + Set to the numeric UNIX user id of the originating user. + + + + + + $SUDO_GID + Set to the primary numeric UNIX group id of the originating session. + + + + + + See Also