Bug#1104693: systemd: user services get wrong environment
Luca Boccassi
bluca at debian.org
Wed May 21 22:31:52 BST 2025
Control: tags -1 upstream
Control: close -1
On Sun, 4 May 2025 20:24:05 +0200 Klaus Stein <steink at istik.de> wrote:
> Package: systemd
> Version: 254.22-1~bpo12+1
> Severity: normal
>
> A service installed by a user with
> ~/> systemctl --user enable someservice
> (which means it is autostarted on user login)
> inherits the wrong environment (e.g. the PATH is set to the root
path:
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin).
> It is different from the environment that is printed by
> ~/> systemctl --user show-environment
> If the user restarts the service it gets the expected environment.
There is no local configuration for such feature. As indicated in the
reportbug template, please report this upstream.
More information about the Pkg-systemd-maintainers
mailing list