Files
systemd/man
Mike Yuan 854eca4a95 core/execute: always set $USER and introduce SetLoginEnvironment=
Before this commit, $USER, $HOME, $LOGNAME and $SHELL are only
set when User= is set for the unit. For system service, this
results in different behaviors depending on whether User=root is set.

$USER always makes sense on its own, so let's set it unconditionally.
Ideally $HOME should be set too, but it causes trouble when e.g. getty
passes '-p' to login(1), which then doesn't override $HOME. $LOGNAME and
$SHELL are more like "login environments", and are generally not
suitable for system services. Therefore, a new option SetLoginEnvironment=
is also added to control the latter three variables.

Fixes #23438

Replaces #8227
2023-10-10 00:00:26 +08:00
..
2023-10-06 11:49:38 +02:00
2023-09-19 00:37:37 +01:00
2023-10-06 11:49:38 +02:00
2023-08-29 14:07:24 +01:00
2023-09-26 15:35:06 +02:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-05-15 22:53:22 +02:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-09-19 10:05:38 +02:00
2023-08-29 14:07:24 +01:00
2023-05-15 22:53:22 +02:00
2023-05-15 22:53:22 +02:00
2023-05-15 22:53:22 +02:00
2023-07-02 11:10:12 +01:00
2023-05-15 22:53:22 +02:00
2023-05-15 22:53:22 +02:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-10-06 11:18:47 +09:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-09-19 00:37:37 +01:00
2023-10-07 15:48:22 +09:00
2023-08-29 14:07:24 +01:00
2023-09-19 00:37:37 +01:00
2023-08-29 14:07:24 +01:00