console.handlers(5)
β¨ NAME β¨
console.handlers(5) β the file that tells everyone which programs get run when console lock and unlock events happen π
π DESCRIPTION π
Okay so bestie, /etc/security/console.handlers is the file that decides which programs will be run when a user obtains the console lock at login time, and when the user loses it on log out. It is read by the pam_console module. No cap. π
The format is:
handler-filename lock|unlock [flag ...]
Where handler-filename is a name of the executable to be run, lock or unlock specifies on which event it should be run, and flags specify how should pam_console call it.
Additionally there should be a line which specifies glob patterns of console devices. The format of this line is:
console-name consoledevs regex [regex ...]
Where console-name is a name of the console class β currently ignored β and regexes are regular expression patterns which specify the name of the tty device. Only the first such line is consulted. Periodt. π¦
πΈ FLAGS πΈ
logfailβ thepam_consolemodule should log error to the system log if the return value of the handler is not zero or if the handler can not be executed.waitβpam_consoleshould wait for the handler to exit before continuing.setuidβ the handler should be executed with uid/gid of the user which obtained the console lock.ttyβ the handler will get a tty name as obtained from PAM as a parameter.userβ the handler will get an user name as obtained from PAM as a parameter.
Anything else will be added directly as a parameter to the handler executable. Literally anything else, bestie β it just gets passed straight through. π«Ά
π₯ SEE ALSO π₯
π AUTHOR π
Tomas Mraz <tmraz@redhat.com>
Red Hat made this one, dated 2005/3/18, and the page is console.handlers(5) β mwah, iconic little manual page, bye bestie πβ¨π
π¦ where this page comes from
- centos-stream 9: pam 1.5.1-30.el9 Β· BSD and GPLv2+
- centos-stream 9: pam 1.5.1-30.el9 Β· BSD and GPLv2+
- Copyright 2005 Red Hat Software, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms