PAM_SET_ITEMS(8)
π NAME π
pam_set_items β a PAM test module that sets module-specific PAM items. It's giving test helper energy, bestie. π§
β¨ SYNOPSIS β¨
pam_set_items.so
π¦ DESCRIPTION π¦
Okay so real talk: PAM modules store data in PAM items. These items are only accessible from module context, not application context, because they might include private data (PAM_AUTHTOK normally contains the password). Like, imagine exposing that to the whole app? no thank you. π
But when you're testing PAM modules, it's often nice to make sure a PAM module under test can retrieve data from the stack. That's where pam_set_items comes in β it makes this possible by reading environment variables and setting them as PAM items. Lowkey iconic behavior. π
π OPTIONS π
- None β literally zero flags, zero options. That's the whole menu. Periodt.
π MODULE TYPES PROVIDED π
All module types (account, auth, password and session) are provided. So yes, she does it all. Main character energy fr fr. π
πΈ EXAMPLE πΈ
Consider an example that tests that pam_unix is able to read a provided password and doesn't query on its own. The test service file would contain:
auth required pam_set_items.so
auth required pam_unix.so
Then the test would put the item to the test environment with:
setenv("PAM_AUTHTOK", "secret");
Then run the PAM conversation. Slay. β¨
That's the whole page, bestie. This is PAM_SET_ITEMS(8), dated 2015-11-04. Stay hydrated and test your PAM modules. π«Άπ
π¦ where this page comes from
- arch rolling: pam_wrapper 1.1.8-2 Β· GPL-3.0-or-later
- centos-stream 10: pam_wrapper 1.1.4-14.el10 Β· GPL-3.0-or-later
- centos-stream 9: pam_wrapper 1.1.4-2.el9 Β· GPLv3+
- centos-stream 9: pam_wrapper 1.1.4-2.el9 Β· GPLv3+
- debian bookworm: libpam-wrapper 1.1.4-1+b2 Β· GPL-3.0-or-later
- debian trixie: libpam-wrapper 1.1.7-1+b1 Β· GPL-3.0-or-later
- fedora 43: pam_wrapper 1.1.8-2.fc43 Β· GPL-3.0-or-later
- fedora 43: pam_wrapper 1.1.8-2.fc43 Β· GPL-3.0-or-later
- fedora 44: pam_wrapper 1.1.8-3.fc44 Β· GPL-3.0-or-later
- fedora 44: pam_wrapper 1.1.8-3.fc44 Β· GPL-3.0-or-later
- nixos 26.05: libpam-wrapper 1.1.5
- nixpkgs unstable: libpam-wrapper 1.1.5
- opensuse-leap 16.0: pam_wrapper 1.1.7-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: pam_wrapper 1.1.7-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: pam_wrapper 1.1.7-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: pam_wrapper 1.1.7-160000.2.2 Β· GPL-3.0-or-later
- ubuntu jammy: libpam-wrapper 1.1.4-1build1 Β· GPL-3.0-or-later
- ubuntu noble: libpam-wrapper 1.1.5-1build3 Β· GPL-3.0-or-later
- ubuntu questing: libpam-wrapper 1.1.7-1build1
- ubuntu resolute: libpam-wrapper 1.1.8-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: libpam-wrapper 1.1.8-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms