OPENPAM_SET_FEATURE(3)
π
OPENPAM_SET_FEATURE(3) β the openpam_set_feature manual page, bestie edition π
okay so real talk, this is a page from the Library Functions Manual and it's all about openpam_set_feature from OpenPAM. buckle up, it's short but it's iconic β¨
πΈ NAME πΈ
openpam_set_feature β turn an optional feature ON or OFF, no cap ποΈ
π¦ SYNOPSIS π¦
like, here's literally exactly how you call it:
#include <sys/types.h>
#include <security/pam_appl.h>
#include <security/openpam.h>
int
openpam_set_feature(int feature, int onoff);
π DESCRIPTION π
β οΈ bestie, heads up: this function is experimental and may be modified or removed in a future release without prior warning. it's giving "living on the edge" energy, so don't build your whole personality on it π
so the way openpam_set_feature() works is: it sets the state of the feature you name in the feature argument to whatever value you pass in onoff. that's it, that's the whole vibe β¨
want the list of recognized features? that lives over in openpam_get_feature(3) β go look there, iykyk π«Ά
π RETURN VALUES π
openpam_set_feature() returns exactly one of these, periodt:
[PAM_SUCCESS]β slay π it worked, success.[PAM_BAD_FEATURE]β the feature is unrecognized or restricted π so like, nope, not that one.
π SEE ALSO π
go read these too, they're all part of the family:
β STANDARDS β
openpam_set_feature() is an OpenPAM extension β it's not some universal standard thing, it's OpenPAM's own little invention π
π AUTHORS π
the openpam_set_feature() function and this very manual page were developed by Dag-Erling SmΓΈrgrav <des@des.no> β king behaviour, we love to see it π
and that's the whole page bestie, hope it ate π this particular copy comes to you from Debian, dated June 27, 2023 β catch you on the next man page, mwah π§β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- nixos 26.05: openpam 20230627
- nixpkgs unstable: openpam 20230627
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms