{"id":4435,"date":"2022-12-20T17:49:17","date_gmt":"2022-12-20T20:49:17","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/console-handlers-man5\/"},"modified":"2022-12-20T17:49:17","modified_gmt":"2022-12-20T20:49:17","slug":"console-handlers-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/console-handlers-man5\/","title":{"rendered":"console.handlers (man5)"},"content":{"rendered":"<h1 align=\"center\">console.handlers<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FLAGS\">FLAGS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">console.handlers \u2212 file specifying handlers of console lock and unlock events<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/security\/console.handlers determines which programs will be run when an 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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The format is:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>handler-filename lock<\/b><i>|<\/i><b>unlock<\/b> <i>[<\/i><b>flag &#8230;<\/b><i>]<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where <b>handler-filename<\/b> is a name of the executable to be run, <b>lock<\/b> or <b>unlock<\/b> specifies on which event it should be run, and flags specify how should pam_console call it.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Additionally there should be a line which specifies glob patterns of console devices.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The format of this line is: <b>console-name consoledevs regex<\/b> <i>[<\/i><b>regex &#8230;<\/b><i>]<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where <b>console-name<\/b> is a name of the console class &#8211; currently ignored &#8211; and regexes are regular expression patterns which specify the name of the tty device. Only the first such line is consulted.<\/p>\n<h2>FLAGS <a name=\"FLAGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">logfail<\/p>\n<p style=\"margin-left:22%;\">The pam_console module 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.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>wait<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The pam_console should wait for the handler to exit before continuing.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>setuid<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The handler should be executed with uid\/gid of the user which obtained the console lock.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>tty<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The handler will get a tty name as obtained from PAM as a parameter.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>user<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The handler will get an user name as obtained from PAM as a parameter.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">Anything else will be added directly as a parameter to the handler executable.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pam_console<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tomas Mraz <tmraz@redhat.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  console.handlers \u2212 file specifying handlers of console lock and unlock events <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1352,1291],"class_list":["post-4435","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-console","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4435"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4435\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}