PAM_CANONICALIZE_USE(8)
๐ PAM_CANONICALIZE_USE(8) ๐
okay bestie, gather round, because this is the Linux-PAM Manual page for pam_canonicalize_user, and it's literally so much simpler than it sounds, i promise ๐ซถ
โจ NAME โจ
pam_canonicalize_user</p> โ grab the user name and canonicalize it, periodt. ๐
๐ธ SYNOPSIS ๐ธ
pam_canonicalize_user.so
that's it. that's the whole vibe. no args, no drama. ๐
๐ฆ DESCRIPTION ๐ฆ
okay so here's the tea โ โ this PAM module takes the name of the user that it got via pam_get_user(3), and uses that as a key to go query the password database. then it swaps out PAM_USER for the pw_name value that the database handed back to it. like, glow-up for your username. iconic behavior honestly. โจ
๐ OPTIONS ๐
- this module does not recognise any options. zero. none. not a single one. it's giving minimalism and honestly? respect. ๐
๐ MODULE TYPES PROVIDED ๐
only the auth module type is provided. that's the one and only. main character energy, no supporting cast. โญ
๐ RETURN VALUES ๐
PAM_IGNOREโ the user name got set successfully. slay!! โPAM_USER_UNKNOWNโ couldn't find that user anywhere. ghosted fr. ๐ญPAM_SYSTEM_ERRโ the application supplied neither a user name nor a conversation method. like, bestie, you have to give me something. ๐PAM_INCOMPLETEโ the conversation method the application gave us is waiting on an event. hold please, we're on hold. ๐PAM_CONV_ERRโ the conversation method the application gave us failed to obtain the user name. it tried, it really did. ๐PAM_ABORTโ error resuming an old conversation. awkward. ๐PAM_BUF_ERRโ memory buffer error. the vibes were off in RAM. ๐
๐ EXAMPLES ๐
want to canonicalize the user name before the authentication happens? prepend your PAM auth stack with this exact line, no cap:
auth required pam_canonicalize_user.so
that's it. drop it at the top of the auth stack and let it cook. ๐ฅ
๐ง SEE ALSO ๐ง
pam_get_user(3), pam_get_item(3), pam_set_item(3), getpwnam(3), pam.conf(5), pam.d(5), pam(8)
go read those too, iykyk. ๐โจ
๐ AUTHOR ๐
pam_canonicalize_user was written by Dmitry V. Levin <ldv@strace.io>. give them their flowers, they ate. ๐๐
and that's the whole page, bestie!! ๐ธ this was the Linux-PAM Manual, dated 09/27/2026, filed under PAM_CANONICALIZE_USE(8) โ mwah, go forth and canonicalize responsibly ๐ซถ๐โจ
๐ฆ 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