CHECK-PASSWORD.4TH(8)
π check-password.4th(8) β FreeBSD password-checking boot module π
from the System Manager's Manual, but make it group chat π¬
πΈ NAME πΈ
check-password.4th β FreeBSD password-checking boot module
β¨ DESCRIPTION β¨
Okay so bestie, the file that goes by the name of check-password.4th is literally a set of commands designed to do one or more of these things:
- Prevent booting without password π
- Prevent modification of boot options without password π‘οΈ
- Provide a password to mount
geli(8)encrypted root disk(s) π½
Real talk though: the commands of check-password.4th by themselves are not enough for most uses, no cap. Please refer to the examples below for the most common situations, and to loader(8) for additional commands. iykyk π«Ά
Before using any of the commands provided in check-password.4th, it must be included through the command:
include check-password.4th
This line is present in /boot/loader.4th file, so it is not needed (and should not be re-issued) in a normal setup. Like, it's already there, bestie β don't do too much π
The commands provided by it are:
check-passwordβ a multi-purpose function that can protect the interactive boot menu, prevent boot without password, or prompt forgeli(8)passphrase (depending onloader.conf(5)settings). It's giving main character energy with three jobs π
Here's the order it does things:
- First checks
bootlock_passwordand if-set, the user cannot continue until the correct password is entered. π - Next, checks
geom_eli_passphrase_promptand if set toYES(case-insensitive) prompts the user to enter their GELI password for later mounting of the root device(s) during boot. π§ - Last, checks
passwordand if-set, tries to autoboot and only prompts for password on failure or user-interrupt. Seeloader.conf(5)for additional information. β
The environment variables that affect its behavior are:
bootlock_passwordβ Sets the bootlock password (up to 255 characters long) that is required bycheck-passwordto be entered before the system is allowed to boot. πgeom_eli_passphrase_promptβ Selects whetherloader(8)will prompt for GELI credentials, handing-off to the kernel for later mounting ofgeli(8)encrypted root device(s). πpasswordβ Sets the password (up to 255 characters long) that is required bycheck-passwordbefore the user is allowed to visit the boot menu. π
π FILES π
/boot/loaderβ Theloader(8)./boot/check-password.4thβcheck-password.4thitself. (yes, self-referential icon behavior πͺ)/boot/loader.rcβloader(8)bootstrapping script.
π§ͺ EXAMPLES π§ͺ
Standard i386 /boot/loader.rc:
include /boot/loader.4th
check-password
Set a password in loader.conf(5) to prevent modification of boot options:
password="abc123"
Set a password in loader.conf(5) to prevent booting without password:
bootlock_password="boot"
Add the following to loader.conf(5) to generate a prompt at boot to collect GELI credentials for mounting geli(8) encrypted root device(s):
geom_eli_passphrase_prompt="YES"
π SEE ALSO π
loader.conf(5), loader(8), loader.4th(8) β go read those too, bestie πβ¨
π HISTORY π
The check-password.4th set of commands first appeared in FreeBSD 9.0. iconic behavior π
π AUTHORS π
The check-password.4th set of commands was written by Devin Teske <dteske@FreeBSD.org>.
xoxo, this page is from Debian, dated June 24, 2018 β check-password.4th(8) out π
β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2011-2018 Devin Teske
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms