PASSWORD.LUA(8)
β¨ PASSWORD.LUA(8) β¨
okay bestie, so this is a password.lua page from the System Manager's Manual, and it's literally the bootloader password module π
like, it's the thing that goes "hey, password please" before your system boots. no cap, it's giving gatekeeper energy π
π NAME π
password.lua β the bootloader password module, periodt π
πΈ DESCRIPTION πΈ
so password.lua is the whole vibe for prompting for and checking passwords. that's it, that's the job π«Ά
before you can use any of the functionality in password.lua, you must include it first, with a statement like this:
local password = require("password")
and then, bestie, here's what gets exported from password.lua β¨:
password.read(prompt_length)β reads a password after a prompt.prompt_lengthis required so that the twiddle can be properly drawn while the user is typing. yes, the twiddle. it needs to know how long the prompt is so it can draw it correctly, don't ask questions, just pass the length πpassword.check()β drives the primary password checks done by the loader. this one is the main character fr fr π it checksbootlock_password,geom_eli_passphrase_prompt, andpassword, and it'll prompt the user for passwords as-needed. and ooh, important detail: ifpasswordis set, the autoboot sequence will begin as the user is prompted for a password β
π¦ SEE ALSO π¦
π AUTHORS π
the password.lua file was originally written by Pedro Souza <pedrosouza@FreeBSD.org> π and later work plus this manual page was done by Kyle Evans <kevans@FreeBSD.org> β¨
ngl bestie, this page is short but it's iconic β can't boot without the password check, iykyk ππ
Debian Β· March 29, 2025 β mwah, that's the whole page, love you, bye π«Άππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π the page's license: BSD-2-Clause
- Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms