diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-01-24 16:02:11 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-01-24 16:02:11 +0000 |
commit | c14d282c2a5fefbf7060d05b9d1910b359a1566f (patch) | |
tree | 8f6b2a2f2d2d4ac3462bf95487e9fde2d973e454 /modules/pam_exec/pam_exec.8.xml | |
parent | fe200c2c6b75da02f6367c1d63d40b2304ed71d4 (diff) | |
download | pam-c14d282c2a5fefbf7060d05b9d1910b359a1566f.tar.gz pam-c14d282c2a5fefbf7060d05b9d1910b359a1566f.tar.bz2 pam-c14d282c2a5fefbf7060d05b9d1910b359a1566f.zip |
CVS: Indicate any relevant BUGIDs here
Relevant BUGIDs:
Purpose of commit: new feature
Commit summary:
---------------
2006-01-24 Thorsten Kukuk <kukuk@thkukuk.de>
* configure.in: Add modules/pam_exec.
* modules/Makefile.am: Add pam_exec subdirectory.
* modules/pam_exec/README: New.
* modules/pam_exec/Makefile.am: New.
* modules/pam_exec/pam_exec.8: New.
* modules/pam_exec/pam_exec.c: New.
* modules/pam_exec/pam_exec.8.xml: New.
* po/POTFILES.in: Add modules/pam_exec/pam_exec.c.
* po/*.po: Merge new pam_exec strings.
Diffstat (limited to 'modules/pam_exec/pam_exec.8.xml')
-rw-r--r-- | modules/pam_exec/pam_exec.8.xml | 202 |
1 files changed, 202 insertions, 0 deletions
diff --git a/modules/pam_exec/pam_exec.8.xml b/modules/pam_exec/pam_exec.8.xml new file mode 100644 index 00000000..112f76cd --- /dev/null +++ b/modules/pam_exec/pam_exec.8.xml @@ -0,0 +1,202 @@ +<?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_exec"> + + <refmeta> + <refentrytitle>pam_exec</refentrytitle> + <manvolnum>8</manvolnum> + <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo> + </refmeta> + + <refnamediv> + <refname>pam_exec</refname> + <refpurpose>PAM module which calls an external command</refpurpose> + </refnamediv> + + <refsynopsisdiv> + <cmdsynopsis id="pam_exec-cmdsynopsis"> + <command>pam_exec.so</command> + <arg choice="opt"> + debug + </arg> + <arg choice="opt"> + seteuid + </arg> + <arg choice="opt"> + log=<replaceable>file</replaceable> + </arg> + <arg choice="plain"> + <replaceable>command</replaceable> + </arg> + <arg choice="opt"> + <replaceable>...</replaceable> + </arg> + </cmdsynopsis> + </refsynopsisdiv> + + <refsect1 id="pam_exec-description"> + + <title>Description</title> + + <para> + pam_exec is a PAM module that can be used to run + an external command. + </para> + + </refsect1> + + <refsect1 id="pam_exec-options"> + + <title>Options</title> + <para> + <variablelist> + + <varlistentry> + <term> + <option>debug</option> + </term> + <listitem> + <para> + Print debug information. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>log=<replaceable>file</replaceable></option> + </term> + <listitem> + <para> + The output of the command is appended to + <filename>file</filename> + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>seteuid</option> + </term> + <listitem> + <para> + Per default pam_exec.so will execute the external command + with the real user ID of the calling process. + Specifying this option means the command is run + with the effective user ID. + </para> + </listitem> + </varlistentry> + + </variablelist> + + </para> + </refsect1> + + <refsect1 id="pam_exec-services"> + <title>Module Services Provided</title> + <para> + The services <option>auth</option>, <option>account</option>, + <option>password</option> and <option>session</option> are supported. + </para> + </refsect1> + + <refsect1 id='pam_exec-return_values'> + <title>Return Values</title> + <para> + <variablelist> + + <varlistentry> + <term> + <option>PAM_SUCCESS</option> + </term> + <listitem> + <para> + The external command runs successfull. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>PAM_SERVICE_ERR</option> + </term> + <listitem> + <para> + No argument or a wrong number of arguments were given. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>PAM_SYSTEM_ERR</option> + </term> + <listitem> + <para> + A system error occured or the command to execute failed. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <option>PAM_IGNORE</option> + </term> + <listitem> + <para> + <function>pam_setcred</function> was called, which + does not execute the command. + </para> + </listitem> + </varlistentry> + + </variablelist> + </para> + </refsect1> + + <refsect1 id='pam_exec-examples'> + <title>Examples</title> + <para> + Add the following line to <filename>/etc/pam.d/passwd</filename> to + rebuild the NIS database after each local password change: + <programlisting> + passwd optional pam_exec.so seteuid make -C /var/yp + </programlisting> + + This will execute the command + <programlisting>make -C /var/yp</programlisting> + with effective user ID. + </para> + </refsect1> + + <refsect1 id='pam_exec-see_also'> + <title>See Also</title> + <para> + <citerefentry> + <refentrytitle>pam.conf</refentrytitle> + <manvolnum>5</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam.d</refentrytitle> + <manvolnum>8</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam</refentrytitle> + <manvolnum>8</manvolnum> + </citerefentry> + </para> + </refsect1> + + <refsect1 id='pam_exec-author'> + <title>Author</title> + <para> + pam_exec was written by Thorsten Kukuk <kukuk@thkukuk.de>. + </para> + </refsect1> + +</refentry> +<!-- vim: sw=2 +--> |