PAM_ISSUE(8)

โœจ PAM_ISSUE ๐Ÿ’–

okay bestie, gather round, because this is pam_issue โ€” it lives in section 8 of the Linux-PAM manual and it's literally the module that puts your lil issue file up top of the username prompt ๐ŸŽ€ no cap


๐ŸŒธ NAME ๐ŸŒธ

pam_issue โ€” a PAM module that adds an issue file to your user prompt ๐Ÿซถ


โœจ SYNOPSIS โœจ

pam_issue.so [noesc] [issue=issue-file-name]

๐Ÿ’… DESCRIPTION ๐Ÿ’…

So pam_issue is a PAM module whose whole job is to prepend an issue file to the username prompt ๐Ÿ’– and like, by default it also parses escape codes in that issue file, same vibe as some common getty's โ€” and yes it uses the \x format, iykyk โœจ

Here's the escape codes it recognizes, they're giving little magic spells fr fr:

  • \d โ€” current day ๐Ÿ“…
  • \l โ€” name of this tty ๐Ÿ–ฅ๏ธ
  • \m โ€” machine architecture (uname -m)
  • \n โ€” machine's network node hostname (uname -n)
  • \o โ€” domain name of this system ๐ŸŒ
  • \r โ€” release number of operating system (uname -r)
  • \t โ€” current time โฐ
  • \s โ€” operating system name (uname -s)
  • \u โ€” number of users currently logged in ๐Ÿ‘ฅ
  • \U โ€” same as \u except it is suffixed with "user" or "users" (eg. "1 user" or "10 users") ๐ŸŒˆ
  • \v โ€” operating system version and build date (uname -v)

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • noesc โ€” turns off escape code parsing ๐Ÿ™ˆ like, we're not doing the magic today
  • issue=issue-file-name โ€” the file to output if you're not using the default ๐Ÿ“„

๐Ÿ‘‘ MODULE TYPES PROVIDED ๐Ÿ‘‘

Only the auth module type is provided. that's it, that's the whole list, she's a one-trick pony and she ate ๐Ÿ’…


โญ RETURN VALUES โญ

  • PAM_BUF_ERR โ€” memory buffer error ๐Ÿ˜ญ
  • PAM_IGNORE โ€” the prompt was already changed ๐Ÿ’€
  • PAM_SERVICE_ERR โ€” a service module error occurred ๐Ÿšจ
  • PAM_SUCCESS โ€” the new prompt was set successfully ๐ŸŽ‰

๐Ÿฆ‹ EXAMPLES ๐Ÿฆ‹

Add the following line to /etc/pam.d/login to set the user specific issue at login:

auth optional pam_issue.so issue=/etc/issue

slay, that's it, that's the whole config ๐Ÿซถ


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

pam.conf(5), pam.d(5), pam(8)


๐ŸŒˆ AUTHOR ๐ŸŒˆ

pam_issue was written by Ben Collins <bcollins@debian.org> ๐Ÿ’–


no cap, every flag and every escape stayed exactly where it was supposed to be. we keep the facts, we just made them cute โœจ

and that's the tea, bestie โ€” this page came to you from Linux-PAM, dated 09/27/2026, under the name PAM_ISSUE(8) ๐ŸŽ€ periodt ๐Ÿ’…

๐Ÿ“ฆ where this page comes from