From: WanBingjiang Date: Wed, 21 May 2025 01:49:33 +0000 (+0800) Subject: login: (adoc) add a description about LOGIN_SHELL_FALLBACK X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e91658d03029bfe5e503a3e1a6528552e75c4e0;p=thirdparty%2Futil-linux.git login: (adoc) add a description about LOGIN_SHELL_FALLBACK --- 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_,