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

177 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PAM_LOCALUSER</TITLE>
</HEAD><BODY>
<H1>PAM_LOCALUSER</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">&nbsp;</A>
<H2>NAME</H2>
pam_localuser - require users to be listed in /etc/passwd
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>pam_localuser.so</B> [debug] [file=<I>/path/passwd</I>]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<DD>pam_localuser is a PAM module to help implementing site-wide login policies, where they typically include a subset of the network's users and a few accounts that are local to a particular workstation. Using pam_localuser and pam_wheel or pam_listfile is an effective way to restrict access to either local users and/or a subset of the network's users.
<P>
This could also be implemented using pam_listfile.so and a very short awk script invoked by cron, but it's common enough to have been separated out.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<P>
<B>debug</B>
<DL COMPACT><DT id="2"><DD>
Print debug information.
</DL>
<P>
<B>file=</B><B></B><I>/path/passwd</I>
<DL COMPACT><DT id="3"><DD>
Use a file other than
/etc/passwd.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>MODULE TYPES PROVIDED</H2>
<P>
All module types (<B>account</B>,
<B>auth</B>,
<B>password</B>
and
<B>session</B>) are provided.
<A NAME="lbAG">&nbsp;</A>
<H2>RETURN VALUES</H2>
<P>
<P>
PAM_SUCCESS
<DL COMPACT><DT id="4"><DD>
The new localuser was set successfully.
</DL>
<P>
PAM_SERVICE_ERR
<DL COMPACT><DT id="5"><DD>
No username was given.
</DL>
<P>
PAM_PERM_DENIED
<DL COMPACT><DT id="6"><DD>
The user is not listed in the passwd file.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
Add the following lines to
/etc/pam.d/su
to allow only local users or group wheel to use su.
<P>
<DL COMPACT><DT id="7"><DD>
<PRE>
account sufficient pam_localuser.so
account required pam_wheel.so
</PRE>
</DL>
<P>
<A NAME="lbAI">&nbsp;</A>
<H2>FILES</H2>
<P>
/etc/passwd
<DL COMPACT><DT id="8"><DD>
Local user account information.
</DL>
<A NAME="lbAJ">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<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">&nbsp;</A>
<H2>AUTHOR</H2>
<P>
pam_localuser was written by Nalin Dahyabhai &lt;<A HREF="mailto:nalin@redhat.com">nalin@redhat.com</A>&gt;.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="12"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="13"><A HREF="#lbAF">MODULE TYPES PROVIDED</A><DD>
<DT id="14"><A HREF="#lbAG">RETURN VALUES</A><DD>
<DT id="15"><A HREF="#lbAH">EXAMPLES</A><DD>
<DT id="16"><A HREF="#lbAI">FILES</A><DD>
<DT id="17"><A HREF="#lbAJ">SEE ALSO</A><DD>
<DT id="18"><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:14 GMT, March 31, 2021
</BODY>
</HTML>