checkpw(8)
π checkpw β the manual page, bestie edition π
okay so this is checkpw(8) from the System Manager's Manual, and honestly? she's a tiny little bouncer for your mail password. let's get into it π«Ά
β¨ NAME β¨
checkpw β checks password against the file ~/Maildir/.password
like. that's the whole job. she checks a password. against that one file. iconic behavior honestly π
πΈ SYNOPSIS πΈ
checkpw prog
π DESCRIPTION π
okay so here's the tea. checkpw reads descriptor 3 through end of file, and then it closes descriptor 3. that's it. that's the move. and listen β there must be at most 512 bytes of data before end of file. so don't be sending her a novel, she has limits π
the info you hand her on descriptor 3 is, in order:
- a login name terminated by
\0 - a password terminated by
\0 - a timestamp terminated by
\0 - and possibly more data after that
and here's the chill part: there are no other restrictions on the form of the login name, password, and timestamp. go off, format however you want β¨
now the exit codes, pay attention bestie:
- if the password is unacceptable,
checkpwexits1 - if
checkpwis misused, it may instead exit2 - if there's a temporary problem checking the password,
checkpwexits111
and if the password is acceptable? she runs prog. that's it, you're in π
prog consists of one or more arguments. one or more. not zero. she said what she said.
π¦ Compatible tools π¦
there are other tools that offer the same interface as checkpw. siblings! a whole little squad π
not me forgetting to mention β note that these tools do not follow the getopt interface. optional features are controlled through (1) the tool name and (2) environment variables. no flags, no dashes, we're doing it the other way here π
π The password database π
checkpw checks the password against the content of the file Maildir/.password in the user's home directory corresponding to the login name.
and Maildir may be overridden through the environment variable $MAILDIR. so you can point her somewhere else if you need to. flexible queen π
β Process-state changes β
before invoking prog, checkpw sets up $USER, $HOME, $SHELL, its supplementary groups, its gid, its uid, and its working directory.
so basically she does a full little glow-up on the environment before handing things off. main character energy, but for process state πΈ
π FILES π
~/Maildir/.password
π₯ SEE ALSO π₯
checkapoppw(8)qmail-popup(8)qmail-pop3d(8)
π AUTHOR π
this manual page was written by Gerrit Pape <pape@smarden.org>, for the Debian GNU/Linux system. thank you gerrit, we appreciate you fr fr π«Ά
and that's the whole page bestie π this was checkpw(8) out of the System Manager's Manual β go check those passwords, stay hydrated, and remember: descriptor 3 closes whether you're ready or not πβ¨
π¦ where this page comes from
- debian bookworm: checkpw 1.02-3 Β· LicenseRef-public-domain
- debian trixie: checkpw 1.02-5 Β· LicenseRef-public-domain
- ubuntu jammy: checkpw 1.02-1.1build1
- ubuntu noble: checkpw 1.02-3 Β· LicenseRef-public-domain
- ubuntu questing: checkpw 1.02-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms