diff options
Diffstat (limited to '')
-rw-r--r-- | modules/pam_shells/pam_shells.8 | 91 | ||||
-rw-r--r-- | modules/pam_shells/pam_shells.8.xml | 117 |
2 files changed, 208 insertions, 0 deletions
diff --git a/modules/pam_shells/pam_shells.8 b/modules/pam_shells/pam_shells.8 new file mode 100644 index 0000000..f0f6ea2 --- /dev/null +++ b/modules/pam_shells/pam_shells.8 @@ -0,0 +1,91 @@ +'\" t +.\" Title: pam_shells +.\" Author: [see the "AUTHOR" section] +.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> +.\" Date: 05/18/2017 +.\" Manual: Linux-PAM Manual +.\" Source: Linux-PAM Manual +.\" Language: English +.\" +.TH "PAM_SHELLS" "8" "05/18/2017" "Linux-PAM Manual" "Linux\-PAM Manual" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +pam_shells \- PAM module to check for valid login shell +.SH "SYNOPSIS" +.HP \w'\fBpam_shells\&.so\fR\ 'u +\fBpam_shells\&.so\fR +.SH "DESCRIPTION" +.PP +pam_shells is a PAM module that only allows access to the system if the user\*(Aqs shell is listed in +/etc/shells\&. +.PP +It also checks if +/etc/shells +is a plain file and not world writable\&. +.SH "OPTIONS" +.PP +This module does not recognise any options\&. +.SH "MODULE TYPES PROVIDED" +.PP +The +\fBauth\fR +and +\fBaccount\fR +module types are provided\&. +.SH "RETURN VALUES" +.PP +PAM_AUTH_ERR +.RS 4 +Access to the system was denied\&. +.RE +.PP +PAM_SUCCESS +.RS 4 +The user\*(Aqs login shell was listed as valid shell in +/etc/shells\&. +.RE +.PP +PAM_SERVICE_ERR +.RS 4 +The module was not able to get the name of the user\&. +.RE +.SH "EXAMPLES" +.PP +.if n \{\ +.RS 4 +.\} +.nf +auth required pam_shells\&.so + +.fi +.if n \{\ +.RE +.\} +.sp +.SH "SEE ALSO" +.PP +\fBshells\fR(5), +\fBpam.conf\fR(5), +\fBpam.d\fR(5), +\fBpam\fR(8) +.SH "AUTHOR" +.PP +pam_shells was written by Erik Troan <ewt@redhat\&.com>\&. diff --git a/modules/pam_shells/pam_shells.8.xml b/modules/pam_shells/pam_shells.8.xml new file mode 100644 index 0000000..15f4767 --- /dev/null +++ b/modules/pam_shells/pam_shells.8.xml @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding='UTF-8'?> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" + "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"> + +<refentry id="pam_shells"> + + <refmeta> + <refentrytitle>pam_shells</refentrytitle> + <manvolnum>8</manvolnum> + <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo> + </refmeta> + + <refnamediv id="pam_shells-name"> + <refname>pam_shells</refname> + <refpurpose>PAM module to check for valid login shell</refpurpose> + </refnamediv> + + <refsynopsisdiv> + <cmdsynopsis id="pam_shells-cmdsynopsis"> + <command>pam_shells.so</command> + </cmdsynopsis> + </refsynopsisdiv> + + <refsect1 id="pam_shells-description"> + + <title>DESCRIPTION</title> + + <para> + pam_shells is a PAM module that only allows access to the + system if the user's shell is listed in <filename>/etc/shells</filename>. + </para> + <para> + It also checks if <filename>/etc/shells</filename> is a plain + file and not world writable. + </para> + </refsect1> + + <refsect1 id="pam_shells-options"> + + <title>OPTIONS</title> + <para> This module does not recognise any options.</para> + </refsect1> + + <refsect1 id="pam_shells-types"> + <title>MODULE TYPES PROVIDED</title> + <para> + The <option>auth</option> and <option>account</option> + module types are provided. + </para> + </refsect1> + + <refsect1 id='pam_shells-return_values'> + <title>RETURN VALUES</title> + <variablelist> + <varlistentry> + <term>PAM_AUTH_ERR</term> + <listitem> + <para> + Access to the system was denied. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>PAM_SUCCESS</term> + <listitem> + <para> + The user's login shell was listed as valid shell in + <filename>/etc/shells</filename>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>PAM_SERVICE_ERR</term> + <listitem> + <para> + The module was not able to get the name of the user. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1 id='pam_shells-examples'> + <title>EXAMPLES</title> + <para> + <programlisting> +auth required pam_shells.so + </programlisting> + </para> + </refsect1> + + <refsect1 id='pam_shells-see_also'> + <title>SEE ALSO</title> + <para> + <citerefentry> + <refentrytitle>shells</refentrytitle><manvolnum>5</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum> + </citerefentry> + </para> + </refsect1> + + <refsect1 id='pam_shells-author'> + <title>AUTHOR</title> + <para> + pam_shells was written by Erik Troan <ewt@redhat.com>. + </para> + </refsect1> + +</refentry> |