PAM_ECHO(8)
๐ฌ NAME ๐ฌ
okay so bestie, meet pam_echo โ the PAM module that's literally just here to print text messages at you. it's the hype-woman of PAM. it says things. that's the whole job. iconic behaviour honestly ๐
โจ SYNOPSIS โจ
pam_echo.so [file=/path/message]
๐ฆ DESCRIPTION ๐ฆ
so the pam_echo PAM module is for printing text messages to inform the user about special things. yes, its entire personality is "yapper" and we love that for it. ๐
now here's the fun part: any sequence that starts with the % character gets interpreted like this ๐
%Hโ the name of the remote host (PAM_RHOST).%hโ the name of the local host.%sโ the service name (PAM_SERVICE).%tโ the name of the controlling terminal (PAM_TTY).%Uโ the remote user name (PAM_RUSER).%uโ the local user name (PAM_USER).
and every other sequence that begins with %? it just expands to the characters following that % character. no cap. it doesn't try to be clever, it just vibe-checks the % and moves on. ๐ธ
๐ OPTIONS ๐
file=/path/messageโ the content of the file/path/messagewill be printed with the PAM conversion function asPAM_TEXT_INFO. basically: point it at a file, it reads the file, it yells the file at your user. ๐ซถ
๐ MODULE TYPES PROVIDED ๐
all module types are provided, bestie โ auth, account, password and session. all four. main character energy across the board. periodt. โญ
๐ RETURN VALUES ๐
PAM_BUF_ERRโ memory buffer error. ๐ญPAM_SUCCESSโ message was successfully printed. slay, it did the thing! ๐ฅPAM_IGNOREโ thePAM_SILENTflag was given, or the message file does not exist, so no message was printed. it's giving "read the room and said nothing." ๐
๐ EXAMPLES ๐
for an example of the use of this module, we show how it may be used to print information about good passwords:
password optional pam_echo.so file=/usr/share/doc/good-password.txt
password required pam_unix.so
see how the optional is doing the heavy lifting there? it's the chill one. the required pam_unix.so is the one actually taking notes. ๐
๐ง SEE ALSO ๐ง
pam.conf(8), pam.d(5), pam(8) โ go read those too, iykyk. ๐
๐ธ AUTHOR ๐ธ
Thorsten Kukuk <kukuk@thkukuk.de> โ thank you for this tiny legend ๐ซถ
and that's the whole page bestie!! this was PAM_ECHO(8) from the Linux-PAM Manual, dated 09/27/2026, brought to you by the Linux-PAM girlies. no message left unprinted. mwah ๐โจ
๐ฆ where this page comes from
- arch rolling: pam 1.7.3-1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms