summaryrefslogtreecommitdiffstats
path: root/src/shared/user-record.c
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2022-03-24 17:15:39 +0100
committerLennart Poettering <lennart@poettering.net>2022-03-28 14:24:46 +0200
commit53350c7bbade8c5f357aa3d1029ef9b2208ea675 (patch)
tree4ace935223a8f92512765e67acf201068fc27f7b /src/shared/user-record.c
parentdocs: use native type instead of byte stream in COREDUMP_PACKAGE_METADATA (diff)
downloadsystemd-53350c7bbade8c5f357aa3d1029ef9b2208ea675.tar.xz
systemd-53350c7bbade8c5f357aa3d1029ef9b2208ea675.zip
Use new default-user-shell option instead of hard-coding bash in nspawn and user-record
Defaults to /bin/bash, no changes in the default configuration The fallback shell for non-root users is as-specified, and the interactive shell for nspawn sessions is started as exec(default-user-shell, "-" + basename(default-user-shell), ...) before falling through to bash and sh
Diffstat (limited to '')
-rw-r--r--src/shared/user-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/user-record.c b/src/shared/user-record.c
index 5b406d1f42..7c1c2cd992 100644
--- a/src/shared/user-record.c
+++ b/src/shared/user-record.c
@@ -1747,7 +1747,7 @@ const char *user_record_shell(UserRecord *h) {
return "/bin/sh";
if (user_record_disposition(h) == USER_REGULAR)
- return "/bin/bash";
+ return DEFAULT_USER_SHELL;
return NOLOGIN;
}