diff options
author | Andreas Henriksson <andreas@fatal.se> | 2018-10-14 14:53:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-17 20:30:10 +0200 |
commit | 33eb44fe4a8d7971b5614bc4c2d90f8d91cce66c (patch) | |
tree | 76ede20632d53c8ec8d1e9fdd71267ec301406d8 /docs/ENVIRONMENT.md | |
parent | d86c8a6cdb7ae42819d7f0e8a8695e3982ef4ca9 (diff) | |
download | systemd-33eb44fe4a8d7971b5614bc4c2d90f8d91cce66c.tar.gz |
sulogin-shell: Use force if SYSTEMD_SULOGIN_FORCE set
When the root account is locked sulogin will either inform you of
this and not allow you in or if --force is used it will hand
you passwordless root (if using a recent enough version of util-linux).
Not being allowed a shell is ofcourse inconvenient, but at the same
time handing out passwordless root unconditionally is probably not
a good idea everywhere.
This patch thus allows to control which behaviour you want by
setting the SYSTEMD_SULOGIN_FORCE environment variable to true
or false to control the behaviour, eg. via adding this to
'systemctl edit rescue.service' (or emergency.service):
[Service]
Environment=SYSTEMD_SULOGIN_FORCE=1
Distributions who used locked root accounts and want the passwordless
behaviour could thus simply drop in the override file in
/etc/systemd/system/rescue.service.d/override.conf
Fixes: #7115
Addresses: https://bugs.debian.org/802211
Diffstat (limited to 'docs/ENVIRONMENT.md')
-rw-r--r-- | docs/ENVIRONMENT.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ENVIRONMENT.md b/docs/ENVIRONMENT.md index 016a89787d..654f7d25cf 100644 --- a/docs/ENVIRONMENT.md +++ b/docs/ENVIRONMENT.md @@ -112,6 +112,12 @@ systemd-timedated: first existing unit listed in the environment variable, and `timedatectl set-ntp off` disables and stops all listed units. +systemd-sulogin-shell: + +* `$SYSTEMD_SULOGIN_FORCE=1` — This skips asking for the root password if the + root password is not available (such as when the root account is locked). + See `sulogin(8)` for more details. + bootctl and other tools that access the EFI System Partition (ESP): * `$SYSTEMD_RELAX_ESP_CHECKS=1` — if set, the ESP validation checks are |