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