{"id":3642,"date":"2022-12-20T17:09:15","date_gmt":"2022-12-20T20:09:15","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pam_tty_audit-man8\/"},"modified":"2022-12-20T17:09:15","modified_gmt":"2022-12-20T20:09:15","slug":"pam_tty_audit-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pam_tty_audit-man8\/","title":{"rendered":"PAM_TTY_AUDIT (man8)"},"content":{"rendered":"<h1 align=\"center\">PAM_TTY_AUDIT<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#MODULE SERVICES PROVIDED\">MODULE SERVICES PROVIDED<\/a><br \/> <a href=\"#RETURN VALUES\">RETURN VALUES<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/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\">pam_tty_audit &#8211; Enable or disable TTY auditing for specified users<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\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=\"81%\">\n<p style=\"margin-top: 1em\"><b>pam_tty_audit.so<\/b> [disable=<i>patterns<\/i>] [enable=<i>patterns<\/i>]<\/p>\n<\/td>\n<td width=\"8%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The pam_tty_audit PAM module is used to enable or disable TTY auditing. By default, the kernel does not audit input on any TTY.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>disable=<\/b><i>patterns<\/i><\/p>\n<p style=\"margin-left:17%;\">For each user matching one of comma\u2212separated glob <i>patterns<\/i>, disable TTY auditing. This overrides any previous <b>enable<\/b> option matchin the same user name on the command line.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>enable=<\/b><i>patterns<\/i><\/p>\n<p style=\"margin-left:17%;\">For each user matching one of comma\u2212separated glob <i>patterns<\/i>, enable TTY auditing. This overrides any previous <b>disable<\/b> option matching the same user name on the command line.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>open_only<\/b><\/p>\n<p style=\"margin-left:17%;\">Set the TTY audit flag when opening the session, but do not restore it when closing the session. Using this option is necessary for some services that don\u00b4t <b>fork()<\/b> to run the authenticated session, such as <b>sudo<\/b>.<\/p>\n<h2>MODULE SERVICES PROVIDED <a name=\"MODULE SERVICES PROVIDED\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Only the <b>session<\/b> service is supported.<\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SESSION_ERR<\/p>\n<p style=\"margin-left:17%;\">Error reading or modifying the TTY audit flag. See the system log for more details.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SUCCESS<\/p>\n<p style=\"margin-left:17%;\">Success.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">When TTY auditing is enabled, it is inherited by all processes started by that user. In particular, daemons restarted by an user will still have TTY auditing enabled, and audit TTY input even by other users unless auditing for these users is explicitly disabled. Therefore, it is recommended to use <b>disable=*<\/b> as the first option for most daemons using PAM.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Audit all administrative actions.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"17%\"><\/td>\n<td width=\"-9%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\">\n<p>session<\/p>\n<\/td>\n<td width=\"77%\">\n<p>required pam_tty_audit.so disable=* enable=root<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_tty_audit was written by Miloslav Trma\u00c4 <mitr@redhat.com>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pam_tty_audit &#8211; Enable or disable TTY auditing for specified users <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,758],"class_list":["post-3642","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pam_tty_audit"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3642","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=3642"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3642\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}