man-pages/man8/pam_cap.8.html
2021-03-31 01:06:50 +01:00

175 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PAM_CAP</TITLE>
</HEAD><BODY>
<H1>PAM_CAP</H1>
Section: Linux-PAM Manual (8)<BR>Updated: 09/23/2011<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pam_cap - PAM module to set inheritable capabilities
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>pam_cap.so</B> [config=<I>/path/to/capability.conf</I>] [debug]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<DD>The pam_cap PAM module sets the current process' inheritable capabilities.
<P>
Capabilities are read from the /etc/security/capability.conf
config file, or alternate file specified with the config= option.
<P>
The module must not be called by a multithreaded application.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<B>config=</B><B></B><I>/path/to/capability.conf</I>
<DL COMPACT><DT id="2"><DD>
Indicate an alternative capability.conf style configuration file to override the default.
</DL>
<P>
<B>debug</B>
<DL COMPACT><DT id="3"><DD>
Print debug information.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>MODULE TYPES PROVIDED</H2>
<P>
Only the <B>authentication</B> module type is provided.
<A NAME="lbAG">&nbsp;</A>
<H2>RETURN VALUES</H2>
<P>
PAM_AUTH_ERR
<DL COMPACT><DT id="4"><DD>
The user is not known to the system.
</DL>
<P>
PAM_IGNORE
<DL COMPACT><DT id="5"><DD>
No capabilities found for this user.
</DL>
<P>
PAM_INCOMPLETE
<DL COMPACT><DT id="6"><DD>
Indicates a PAM-Conversation failure.
</DL>
<P>
PAM_SUCCESS
<DL COMPACT><DT id="7"><DD>
Capabilities were set.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>FILES</H2>
<P>
/etc/security/capability.conf
<DL COMPACT><DT id="8"><DD>
Default configuration file
</DL>
<A NAME="lbAI">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
Nearly all applications/daemons which use PAM for authentication contain a
configuration line: <I>@include common-auth</I>. Thus, to set inheritable capabilities
in <B>all</B> of these applications, add the following as the last line to
/etc/pam.d/common-auth
<P>
<DL COMPACT><DT id="9"><DD>
auth optional pam_cap.so
</DL>
<P>
To set inheritable capabilities for a user in a <B>specific</B> application,
or in application(s) which do not @include common-auth,
add the line below to the application-specific file; e.g. /etc/pam.d/myapp
<P>
<DL COMPACT><DT id="10"><DD>
auth optional pam_cap.so
</DL>
<P>
<A NAME="lbAJ">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<P>
<B><A HREF="/cgi-bin/man/man2html?5+capability.conf">capability.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">&nbsp;</A>
<H2>AUTHORS</H2>
<P>
pam_cap was initially written by Andrew G. Morgan &lt;<A HREF="mailto:morgan@kernel.org">morgan@kernel.org</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</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">FILES</A><DD>
<DT id="18"><A HREF="#lbAI">EXAMPLES</A><DD>
<DT id="19"><A HREF="#lbAJ">SEE ALSO</A><DD>
<DT id="20"><A HREF="#lbAK">AUTHORS</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:14 GMT, March 31, 2021
</BODY>
</HTML>