PAM_INFO(3)
π PAM_INFO(3) π
okay so bestie, welcome to the PAM_INFO page from the Linux-PAM manual β yes that Linux-PAM, the big one, and this is literally the whole page, so buckle up π
β¨ NAME β¨
pam_info, pam_vinfo β display messages to the user πΈ
like, that's it. that's the whole job. they show the user a message. iconic behaviour honestly.
β¨ SYNOPSIS β¨
#include <security/pam_ext.h>
int pam_info(pam_handle_t *pamh, const char *fmt, ...);
int pam_vinfo(pam_handle_t *pamh, const char *fmt, va_list args);
β¨ DESCRIPTION β¨
so pam_info prints messages to the user β and how does it do that? through the conversation function. that's the vibe. it doesn't just like, printf into the void, it goes through the proper channel π
and pam_vinfo? it does the exact same task as pam_info() β same energy, same mission β the only difference is that it takes a set of arguments that were obtained using the stdarg(3) variable argument list macros. so it's the v-flavoured twin. you know the type. π
β¨ RETURN VALUES β¨
PAM_BUF_ERRβ memory buffer error π the buffer said no.PAM_CONV_ERRβ conversation failure π the convo did not go well, bestie.PAM_SUCCESSβ transaction was successful created β¨ slay, it worked.PAM_SYSTEM_ERRβ system error π the system is being a little dramatic.
β¨ SEE ALSO β¨
pam(8)π«Ά
β¨ STANDARDS β¨
real talk: pam_info and pam_vinfo are Linux-PAM extensions β so like, they're our thing, not some portability guarantee everywhere else. iykyk π
ngl bestie, if you're calling these, double-check your return value. PAM_SUCCESS hits different when the transaction was successful created π
and that's the page!! brought to you by Linux-PAM, dated 07/08/2026 β go forth and print your little messages, you absolute main character π₯ππ
π¦ where this page comes from
- fedora 44: pam-devel 1.7.2-2.fc44 Β· BSD-3-Clause AND GPL-2.0-or-later
- fedora 44: pam-devel 1.7.2-2.fc44 Β· BSD-3-Clause AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms