PAM_SHELLS(8)
โจ NAME โจ
okay so bestie, gather round ๐ this is pam_shells โ it's from the Linux-PAM manual, section 8 (that's the admin/system commands girlies ๐), and it's a PAM module whose whole entire job is checking for a valid login shell.
๐ธ SYNOPSIS ๐ธ
pam_shells.so
that's it. that's the whole vibe. no args, no flags, just a little module living its truth ๐ฆ
๐ DESCRIPTION ๐
so pam_shells is a PAM module that only lets you into the system if your shell is listed in /etc/shells. like, if your shell isn't on the guest list, you're not getting in. no cap. ๐ซ
it also does a little background check on the files it needs (think /etc/shells) โ it makes sure they're plain files and that they are not world writable. because a world-writable shell list is giving chaos and we do not stan ๐ญ
๐ OPTIONS ๐
not a single one, bestie. this module does not recognise any options. zero. none. she's low maintenance, she's independent, she takes no notes ๐ โจ
๐ MODULE TYPES PROVIDED ๐
the auth and account module types are provided ๐ซถ
๐ฅ RETURN VALUES ๐ฅ
PAM_AUTH_ERRโ access to the system was denied. sorry babe, the door said no ๐PAM_SUCCESSโ your login shell was listed as a valid shell in/etc/shells. slay, you're in ๐PAM_USER_UNKNOWNโ the user doesn't exist, or the user's login shell could not be determined. mystery girlie behavior ๐PAM_SERVICE_ERRโ the module was not able to get the name of the user. it tried, it really did ๐ญ
๐ฆ EXAMPLES ๐ฆ
auth required pam_shells.so
put that in your config and you're iconic, periodt.
๐ SEE ALSO ๐
shells(5), pam.conf(5), pam.d(5), pam(8)
go read those next, bestie, they're part of the lore ๐โจ
๐ธ AUTHOR ๐ธ
pam_shells was written by Erik Troan <ewt@redhat.com> โ thank you king, we appreciate you ๐ซถ๐
and that's the whole page bestie!! this was Linux-PAM, dated 09/27/2026 โ mwah, go forth and validate those shells ๐๐โจ
๐ฆ 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