]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: (adoc) add a description about LOGIN_SHELL_FALLBACK
authorWanBingjiang <wanbingjiang@webray.com.cn>
Wed, 21 May 2025 01:49:33 +0000 (09:49 +0800)
committerWanBingjiang <wanbingjiang@webray.com.cn>
Wed, 21 May 2025 02:04:56 +0000 (10:04 +0800)
login-utils/login.1.adoc

index fb4736c06307b80315268f9f8d8feabebe1c971b..62c3ae4d4c786963f82569932a1bf092a5a30bf8 100644 (file)
@@ -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_,