Files
systemd/src/basic
Zbigniew Jędrzejewski-Szmek 8a7adccbdb various: try to use DEFAULT_USER_SHELL for root too
/bin/sh as a shell is punishing. There is no good reason to make
the occasional root login unpleasant.

Since /bin/sh is usually /bin/bash in compat mode, i.e. if one is
available, the other will be too, /bin/bash is almost as good as a default.
But to avoid a regression in the situation where /bin/bash (or
DEFAULT_USER_SHELL) is not installed, we check with access() and fall back
to /bin/sh. This should make this change in behaviour less risky.

(FWIW, e.g. Fedora/RHEL use /bin/bash as default for root.)

This is a follow-up of sorts for 53350c7bba,
which added the default-user-shell option, but most likely with the idea
of using /bin/bash less ;)

Fixes #24369.
2022-08-24 10:02:46 +02:00
..
2021-10-20 22:20:18 +09:00
2022-02-21 23:08:34 +00:00
2022-03-03 22:48:43 +01:00
2021-05-17 22:27:41 +01:00
2021-05-17 22:27:41 +01:00
2021-05-17 22:27:41 +01:00
2021-10-08 13:11:00 +01:00
2022-07-02 12:46:16 +02:00
2021-03-31 21:43:45 +02:00
2022-08-02 02:43:38 +09:00
2022-07-26 23:41:48 +09:00
2022-01-31 11:50:15 +09:00
2022-04-11 19:20:08 +09:00
2022-06-22 22:23:58 +09:00
2022-06-28 13:10:05 +02:00
2021-09-28 15:15:12 +09:00
2021-09-28 15:15:12 +09:00
2022-05-31 09:20:52 +02:00
2022-03-18 09:42:38 +01:00
2021-08-10 17:08:00 +02:00
2022-06-01 03:12:33 +09:00
2021-04-08 13:00:50 +02:00
2021-02-16 17:15:11 +01:00
2021-03-01 13:40:52 +01:00
2022-07-08 16:09:46 +02:00
2022-07-29 11:10:29 +02:00