204 lines
4.1 KiB
HTML
204 lines
4.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PAM_TIMESTAMP</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PAM_TIMESTAMP</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 - Authenticate using cached successful authentication attempts
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>pam_timestamp.so</B> [timestampdir=<I>directory</I>] [timestamp_timeout=<I>number</I>] [verbose] [debug]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>In a nutshell,
|
|
<I>pam_timestamp</I>
|
|
caches successful authentication attempts, and allows you to use a recent successful attempt as the basis for authentication. This is similar mechanism which is used in
|
|
<B>sudo</B>.
|
|
<P>
|
|
|
|
When an application opens a session using
|
|
<I>pam_timestamp</I>, a timestamp file is created in the
|
|
<I>timestampdir</I>
|
|
directory for the user. When an application attempts to authenticate the user, a
|
|
<I>pam_timestamp</I>
|
|
will treat a sufficiently recent timestamp file as grounds for succeeding.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>timestampdir=</B><B></B><I>directory</I>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Specify an alternate directory where
|
|
<I>pam_timestamp</I>
|
|
creates timestamp files.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>timestamp_timeout=</B><B></B><I>number</I>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
How long should
|
|
<I>pam_timestamp</I>
|
|
treat timestamp as valid after their last modification date (in seconds). Default is 300 seconds.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>verbose</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Attempt to inform the user when access is granted.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>debug</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Turns on debugging messages sent to
|
|
<B><A HREF="/cgi-bin/man/man2html?3+syslog">syslog</A></B>(3).
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>MODULE TYPES PROVIDED</H2>
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>auth</B>
|
|
and
|
|
<B>session</B>
|
|
module types are provided.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>RETURN VALUES</H2>
|
|
|
|
<P>
|
|
|
|
PAM_AUTH_ERR
|
|
<DL COMPACT><DT id="6"><DD>
|
|
The module was not able to retrieve the user name or no valid timestamp file was found.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
PAM_SUCCESS
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Everything was successful.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
PAM_SESSION_ERR
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Timestamp file could not be created or updated.
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </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="lbAI"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="9"><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="lbAJ"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<P>
|
|
|
|
/var/run/pam_timestamp/...
|
|
<DL COMPACT><DT id="10"><DD>
|
|
timestamp files and directories
|
|
</DL>
|
|
|
|
<A NAME="lbAK"> </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="lbAL"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<P>
|
|
|
|
pam_timestamp was written by Nalin Dahyabhai.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="15"><A HREF="#lbAF">MODULE TYPES PROVIDED</A><DD>
|
|
<DT id="16"><A HREF="#lbAG">RETURN VALUES</A><DD>
|
|
<DT id="17"><A HREF="#lbAH">NOTES</A><DD>
|
|
<DT id="18"><A HREF="#lbAI">EXAMPLES</A><DD>
|
|
<DT id="19"><A HREF="#lbAJ">FILES</A><DD>
|
|
<DT id="20"><A HREF="#lbAK">SEE ALSO</A><DD>
|
|
<DT id="21"><A HREF="#lbAL">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>
|