From 5e91658d03029bfe5e503a3e1a6528552e75c4e0 Mon Sep 17 00:00:00 2001 From: WanBingjiang Date: Wed, 21 May 2025 09:49:33 +0800 Subject: [PATCH] login: (adoc) add a description about LOGIN_SHELL_FALLBACK --- login-utils/login.1.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/login-utils/login.1.adoc b/login-utils/login.1.adoc index fb4736c06..62c3ae4d4 100644 --- a/login-utils/login.1.adoc +++ b/login-utils/login.1.adoc @@ -138,6 +138,10 @@ If set, it will be used to define the *PATH* environment variable when a regular If set, it will be used to define the PATH environment variable when the superuser logs in. *ENV_ROOTPATH* takes precedence. The default value is _/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin_. +*LOGIN_SHELL_FALLBACK* (boolean):: + +If set to _yes_, login will provide a valid shell from `/etc/shells` when the shell specified in `/etc/passwd` is invalid or inaccessible due to administrative errors. This ensures users can still log in. However, it may bypass intended shell restrictions, potentially causing unexpected behavior if the fallback shell differs from the configured one. + == FILES _/var/run/utmp_, -- 2.47.2