208 lines
3.6 KiB
HTML
208 lines
3.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PAM_TIMESTAMP_CHECK</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PAM_TIMESTAMP_CHECK</H1>
|
|
Section: Linux-PAM Manual (8)<BR>Updated: 05/18/2017<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pam_timestamp_check - Check to see if the default timestamp is valid
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>pam_timestamp_check</B> [-k] [-d] [<I>target_user</I>]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>With no arguments
|
|
<B>pam_timestamp_check</B>
|
|
will check to see if the default timestamp is valid, or optionally remove it.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>-k</B>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Instead of checking the validity of a timestamp, remove it. This is analogous to sudo's
|
|
<I>-k</I>
|
|
option.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-d</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Instead of returning validity using an exit status, loop indefinitely, polling regularly and printing the status on standard output.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B></B><I>target_user</I>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
By default
|
|
<B>pam_timestamp_check</B>
|
|
checks or removes timestamps generated by
|
|
<I>pam_timestamp</I>
|
|
when the user authenticates as herself. When the user authenticates as a different user, the name of the timestamp file changes to accommodate this.
|
|
<I>target_user</I>
|
|
allows to specify this user name.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>RETURN VALUES</H2>
|
|
|
|
<P>
|
|
|
|
0
|
|
<DL COMPACT><DT id="5"><DD>
|
|
The timestamp is valid.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
2
|
|
<DL COMPACT><DT id="6"><DD>
|
|
The binary is not setuid root.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
3
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Invalid invocation.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
4
|
|
<DL COMPACT><DT id="8"><DD>
|
|
User is unknown.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
5
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Permissions error.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
6
|
|
<DL COMPACT><DT id="10"><DD>
|
|
Invalid controlling tty.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
7
|
|
<DL COMPACT><DT id="11"><DD>
|
|
Timestamp is not valid.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<P>
|
|
|
|
Users can get confused when they are not always asked for passwords when running a given program. Some users reflexively begin typing information before noticing that it is not being asked for.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="12"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
auth sufficient pam_timestamp.so verbose
|
|
auth required pam_unix.so
|
|
|
|
session required pam_unix.so
|
|
session optional pam_timestamp.so
|
|
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<P>
|
|
|
|
/var/run/sudo/...
|
|
<DL COMPACT><DT id="13"><DD>
|
|
timestamp files and directories
|
|
</DL>
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+pam_timestamp_check">pam_timestamp_check</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pam.conf">pam.conf</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pam.d">pam.d</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?7+pam">pam</A></B>(7)
|
|
<A NAME="lbAK"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<P>
|
|
|
|
pam_tally was written by Nalin Dahyabhai.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="17"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="18"><A HREF="#lbAF">RETURN VALUES</A><DD>
|
|
<DT id="19"><A HREF="#lbAG">NOTES</A><DD>
|
|
<DT id="20"><A HREF="#lbAH">EXAMPLES</A><DD>
|
|
<DT id="21"><A HREF="#lbAI">FILES</A><DD>
|
|
<DT id="22"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="23"><A HREF="#lbAK">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:15 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|