PAM_GROUP(8)
โจ pam_group โ bestie edition โจ
okay so you're here for pam_group, a Linux-PAM manual page (section 8, admin-level stuff, we love that for us). Let me spill the tea on what this module does ๐
๐ธ NAME ๐ธ
pam_group โ a PAM module for group access, aka the module that hands out group memberships like friendship bracelets ๐
๐ฆ SYNOPSIS ๐ฆ
pam_group.so
that's it. that's the whole synopsis. iconic, lowkey ๐ซถ
๐ DESCRIPTION ๐
So pam_group does not authenticate the user โ no cap, that's not its job, it's not the main character of the login flow. What it does do is grant group memberships to the user, and it does this during the credential setting phase of the authentication module. Which groups you get is based on the service you're applying for. it's giving โจtailoredโจ
By default, the rules for those group memberships are pulled from the config file /etc/security/group.conf. that's the vibe check location, fr fr ๐
Now here's the part where you gotta pay attention, bestie, because it's important ๐
This module's usefulness relies entirely on the file-systems that the user can access. The point is: once the user gets granted membership of a group, they may attempt to create a setgid binary with a restricted group ownership. And then later, when the user is not given membership to that group anymore, they can recover the group membership with that precompiled binary. ๐ญ sneaky!
The reason the file-systems the user has access to matter SO much is that when a system is mounted nosuid, the user is unable to create or execute such a binary file. So:
For this module to provide any level of security, all file-systems that the user has write access to should be mounted nosuid. periodt. no exceptions. don't skip this.
And one more thing: pam_group functions in parallel with the /etc/group file. So if the user gets granted any groups based on this module's behavior, they're granted in addition to those entries in /etc/group (or the equivalent). both. at the same time. slay ๐
โจ OPTIONS โจ
This module does not recognise any options. zero. none. nothing to configure. she's self-sufficient, she's independent, she doesn't need your flags ๐
๐ MODULE TYPES PROVIDED ๐
Only the auth module type is provided. just the one. quality over quantity, bestie ๐
๐ RETURN VALUES ๐
PAM_SUCCESSโ group membership was granted. we love a happy ending ๐ฅณPAM_ABORTโ Not all relevant data could be gotten. something got lost in the group chat ๐ญPAM_BUF_ERRโ Memory buffer error. the memory said "not today" ๐PAM_CRED_ERRโ Group membership was not granted. the vibe check failed, unfortunately ๐PAM_IGNOREโpam_sm_authenticatewas called which does nothing. not me showing up to a function that has nothing to do with me ๐PAM_USER_UNKNOWNโ The user is not known to the system. who is she? never heard of her ๐ง
๐ FILES ๐
/etc/security/group.confโ Default configuration file. the home base, the main character's house ๐
๐ SEE ALSO ๐
group.conf(5), pam.d(5), pam(8).
go read those too, bestie, iykyk ๐
๐ AUTHORS ๐
pam_group was written by Andrew G. Morgan <morgan@kernel.org>. absolute legend, we stan ๐ฅ
okay that's the whole page!! and for the cute sign-off โ this lil masterpiece comes to you from Linux-PAM, dated 09/27/2026, and yes the manual page is literally named PAM_GROUP(8) in case you were wondering, mwah ๐โจ๐ฆ
๐ฆ 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