pkcs11_eventmgr(1)
π pkcs11_eventmgr(1) π
okay bestie, so this is pkcs11_eventmgr(1) β part of the PAM-pkcs11 tools family, and it's genuinely one of the most useful little gremlins in the whole suite. sit down, grab a strawberry π, let's get into it.
β¨ NAME β¨
pkcs11_eventmgr β the SmartCard PKCS#11 Event Manager, aka your card reader's personal hype-watcher π
π SYNTAX π
pkcs11_eventmgr [[no]debug] [[no]daemon] [polling_time=<secs> ]
[expire_time=<secs>] [pkcs11_module=<module> ] [config_file=<filename>]
no subcommands, no drama, just vibes and flags. periodt. π
π¦ DESCRIPTION π¦
So card_eventmgr is a SmartCard Monitoring thing β it literally sits there and listens to the status of your card reader, and when stuff happens it dispatches actions. it's giving loyal bodyguard energy.
and like, card_eventmgr can be used to do several actions, for example locking your screen when the card gets removed. lowkey iconic. π₯
there are three events it supports:
- card insert
- card removal
- timeout on removed card
and the actions to take? those are specified in the configuration file. it doesn't just guess, bestie β you tell it what to do. π
πΈ OPTIONS πΈ
[no]debugβ turns on debugging output. default is no debug (so, quiet girl mode π).[no]daemonβ runs it in the background. and heads up: ifdebugis unset, it also detaches from the tty. default: no daemon.polling_time=<secs>β sets the polling timeout, in secs. defaults to 1 sec. yes, she checks in on the reader every single second. attentive queen. πexpire_time=<secs>β sets the timeout on card removed. defaults to 0, which means never.config_file=<configuration file>β sets the configuration file. defaults to/etc/pam_pkcs11/card_eventmgr.conf.pkcs11_module=<pkcs11.so library>β sets the pkcs#11 library module to use. defaults to/usr/lib/pkcs11/opensc-pkcs11.so.
π FILES π
/etc/pam_pkcs11/card_eventmgr.conf/usr/lib/pkcs11/opensc-pkcs11.so
β¨ EXAMPLES β¨
to run this program the standard way, just type:
pkcs11_eventmgr
alternatively you can specify options, like the main character you are:
pkcs11_eventmgr nodebug nodaemon polling_time=5
config_file=${HOME}/.pkcs11_eventmgr.conf
π BUGS π
okay so this part is the "read the fine print" part, and ngl it matters:
- some PKCS#11 Libraries fail on card removal and re-insert. to avoid this,
pkcs11_eventmgrtries to re-initialize stuff by callingC_Finalize()andC_Initialize()on card removal. she's doing her best π«Ά - some apps like
[xscreensaver-command]may fail due to external events (for example: trying to unlock an already-unlocked session). in this case, the command incorrectly returns an error code. - user should take care on this circumstance. fr fr. π
π AUTHORS π
Juan Antonio Martinez <jonsito@teleline.es>
π SEE ALSO π
pam_pkcs11(8),card_eventmgr(5)README.eventmgr- PAM-PKCS11 User Manual
and that's the whole page bestie, no cap π this was brought to you by Juan Antonio Martinez, version 0.4.4, straight out of the PAM-pkcs11 tools era. go lock that screen on card removal, you absolute legend. πβ¨π¦
π¦ where this page comes from
- debian trixie: libpam-pkcs11 0.6.13-1
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: pam_pkcs11 0.6.13-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu questing: libpam-pkcs11 0.6.13-1
- ubuntu resolute: libpam-pkcs11 0.6.13-1build1
- ubuntu stonking: libpam-pkcs11 0.6.13-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms