From 7df0297ac5aa784209d4c719c87fdd707a9f34cf Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Sat, 4 May 2024 05:06:16 -0600 Subject: [PATCH] man/run0: Describe environment variables set (#32622) * man/run0: Describe environment variables set --- man/run0.xml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/man/run0.xml b/man/run0.xml index 478af8a90b..c9be24da98 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