pam_localuser.8.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
  4. <refentry id="pam_localuser">
  5. <refmeta>
  6. <refentrytitle>pam_localuser</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_localuser-name">
  11. <refname>pam_localuser</refname>
  12. <refpurpose>require users to be listed in /etc/passwd</refpurpose>
  13. </refnamediv>
  14. <refsynopsisdiv>
  15. <cmdsynopsis id="pam_localuser-cmdsynopsis">
  16. <command>pam_localuser.so</command>
  17. <arg choice="opt">
  18. debug
  19. </arg>
  20. <arg choice="opt">
  21. file=<replaceable>/path/passwd</replaceable>
  22. </arg>
  23. </cmdsynopsis>
  24. </refsynopsisdiv>
  25. <refsect1 id="pam_localuser-description">
  26. <title>DESCRIPTION</title>
  27. <para>
  28. pam_localuser is a PAM module to help implementing site-wide login
  29. policies, where they typically include a subset of the network's
  30. users and a few accounts that are local to a particular workstation.
  31. Using pam_localuser and pam_wheel or pam_listfile is an effective
  32. way to restrict access to either local users and/or a subset of the
  33. network's users.
  34. </para>
  35. <para>
  36. This could also be implemented using pam_listfile.so and a very
  37. short awk script invoked by cron, but it's common enough to have
  38. been separated out.
  39. </para>
  40. </refsect1>
  41. <refsect1 id="pam_localuser-options">
  42. <title>OPTIONS</title>
  43. <para>
  44. <variablelist>
  45. <varlistentry>
  46. <term>
  47. <option>debug</option>
  48. </term>
  49. <listitem>
  50. <para>
  51. Print debug information.
  52. </para>
  53. </listitem>
  54. </varlistentry>
  55. <varlistentry>
  56. <term>
  57. <option>file=<replaceable>/path/passwd</replaceable></option>
  58. </term>
  59. <listitem>
  60. <para>
  61. Use a file other than <filename>/etc/passwd</filename>.
  62. </para>
  63. </listitem>
  64. </varlistentry>
  65. </variablelist>
  66. </para>
  67. </refsect1>
  68. <refsect1 id="pam_localuser-types">
  69. <title>MODULE TYPES PROVIDED</title>
  70. <para>
  71. All module types (<option>account</option>, <option>auth</option>,
  72. <option>password</option> and <option>session</option>) are provided.
  73. </para>
  74. </refsect1>
  75. <refsect1 id='pam_localuser-return_values'>
  76. <title>RETURN VALUES</title>
  77. <para>
  78. <variablelist>
  79. <varlistentry>
  80. <term>PAM_SUCCESS</term>
  81. <listitem>
  82. <para>
  83. The new localuser was set successfully.
  84. </para>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry>
  88. <term>PAM_BUF_ERR</term>
  89. <listitem>
  90. <para>
  91. Memory buffer error.
  92. </para>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry>
  96. <term>PAM_CONV_ERR</term>
  97. <listitem>
  98. <para>
  99. The conversation method supplied by the application
  100. failed to obtain the username.
  101. </para>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry>
  105. <term>PAM_INCOMPLETE</term>
  106. <listitem>
  107. <para>
  108. The conversation method supplied by the application
  109. returned PAM_CONV_AGAIN.
  110. </para>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry>
  114. <term>PAM_SERVICE_ERR</term>
  115. <listitem>
  116. <para>
  117. The user name is not valid or the passwd file is unavailable.
  118. </para>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry>
  122. <term>PAM_PERM_DENIED</term>
  123. <listitem>
  124. <para>
  125. The user is not listed in the passwd file.
  126. </para>
  127. </listitem>
  128. </varlistentry>
  129. </variablelist>
  130. </para>
  131. </refsect1>
  132. <refsect1 id='pam_localuser-examples'>
  133. <title>EXAMPLES</title>
  134. <para>
  135. Add the following lines to <filename>/etc/pam.d/su</filename> to
  136. allow only local users or group wheel to use su.
  137. <programlisting>
  138. account sufficient pam_localuser.so
  139. account required pam_wheel.so
  140. </programlisting>
  141. </para>
  142. </refsect1>
  143. <refsect1 id="pam_localuser-files">
  144. <title>FILES</title>
  145. <variablelist>
  146. <varlistentry>
  147. <term><filename>/etc/passwd</filename></term>
  148. <listitem>
  149. <para>Local user account information.</para>
  150. </listitem>
  151. </varlistentry>
  152. </variablelist>
  153. </refsect1>
  154. <refsect1 id='pam_localuser-see_also'>
  155. <title>SEE ALSO</title>
  156. <para>
  157. <citerefentry>
  158. <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
  159. </citerefentry>,
  160. <citerefentry>
  161. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  162. </citerefentry>,
  163. <citerefentry>
  164. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  165. </citerefentry>
  166. </para>
  167. </refsect1>
  168. <refsect1 id='pam_localuser-author'>
  169. <title>AUTHOR</title>
  170. <para>
  171. pam_localuser was written by Nalin Dahyabhai &lt;nalin@redhat.com&gt;.
  172. </para>
  173. </refsect1>
  174. </refentry>