1 <?xml version="1.0" encoding='UTF-8'?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
5 <refentry id="pam_tty_audit">
8 <refentrytitle>pam_tty_audit</refentrytitle>
9 <manvolnum>8</manvolnum>
10 <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
13 <refnamediv id="pam_tty_audit-name">
14 <refname>pam_tty_audit</refname>
15 <refpurpose>Enable or disable TTY auditing for specified users</refpurpose>
19 <cmdsynopsis id="pam_tty_audit-cmdsynopsis">
20 <command>pam_tty_audit.so</command>
22 disable=<replaceable>patterns</replaceable>
25 enable=<replaceable>patterns</replaceable>
30 <refsect1 id="pam_tty_audit-description">
31 <title>DESCRIPTION</title>
33 The pam_tty_audit PAM module is used to enable or disable TTY auditing.
34 By default, the kernel does not audit input on any TTY.
38 <refsect1 id="pam_tty_audit-options">
39 <title>OPTIONS</title>
43 <option>disable=<replaceable>patterns</replaceable></option>
47 For each user matching one of comma-separated glob
48 <option><replaceable>patterns</replaceable></option>, disable
49 TTY auditing. This overrides any previous <option>enable</option>
50 option matching the same user name on the command line.
56 <option>enable=<replaceable>patterns</replaceable></option>
60 For each user matching one of comma-separated glob
61 <option><replaceable>patterns</replaceable></option>, enable
62 TTY auditing. This overrides any previous <option>disable</option>
63 option matching the same user name on the command line.
69 <option>open_only</option>
73 Set the TTY audit flag when opening the session, but do not restore
74 it when closing the session. Using this option is necessary for
75 some services that don't <function>fork()</function> to run the
76 authenticated session, such as <command>sudo</command>.
83 <refsect1 id="pam_tty_audit-types">
84 <title>MODULE TYPES PROVIDED</title>
86 Only the <emphasis remap='B'>session</emphasis> type is supported.
90 <refsect1 id='pam_tty_audit-return_values'>
91 <title>RETURN VALUES</title>
94 <term>PAM_SESSION_ERR</term>
97 Error reading or modifying the TTY audit flag. See the system log
104 <term>PAM_SUCCESS</term>
115 <refsect1 id='pam_tty_audit-notes'>
118 When TTY auditing is enabled, it is inherited by all processes started by
119 that user. In particular, daemons restarted by an user will still have
120 TTY auditing enabled, and audit TTY input even by other users unless
121 auditing for these users is explicitly disabled. Therefore, it is
122 recommended to use <option>disable=*</option> as the first option for
123 most daemons using PAM.
126 To view the data that was logged by the kernel to audit use
127 the command <command>aureport --tty</command>.
131 <refsect1 id='pam_tty_audit-examples'>
132 <title>EXAMPLES</title>
134 Audit all administrative actions.
136 session required pam_tty_audit.so disable=* enable=root
141 <refsect1 id='pam_tty_audit-see_also'>
142 <title>SEE ALSO</title>
145 <refentrytitle>aureport</refentrytitle><manvolnum>8</manvolnum>
148 <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
151 <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
154 <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
159 <refsect1 id='pam_tty_audit-author'>
160 <title>AUTHOR</title>
162 pam_tty_audit was written by Miloslav Trmač
163 <mitr@redhat.com>.