pam_access.8.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
  4. <refentry id='pam_access'>
  5. <refmeta>
  6. <refentrytitle>pam_access</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id='pam_access-name'>
  11. <refname>pam_access</refname>
  12. <refpurpose>
  13. PAM module for logdaemon style login access control
  14. </refpurpose>
  15. </refnamediv>
  16. <!-- body begins here -->
  17. <refsynopsisdiv>
  18. <cmdsynopsis id="pam_access-cmdsynopsis">
  19. <command>pam_access.so</command>
  20. <arg choice="opt">
  21. debug
  22. </arg>
  23. <arg choice="opt">
  24. nodefgroup
  25. </arg>
  26. <arg choice="opt">
  27. noaudit
  28. </arg>
  29. <arg choice="opt">
  30. accessfile=<replaceable>file</replaceable>
  31. </arg>
  32. <arg choice="opt">
  33. fieldsep=<replaceable>sep</replaceable>
  34. </arg>
  35. <arg choice="opt">
  36. listsep=<replaceable>sep</replaceable>
  37. </arg>
  38. </cmdsynopsis>
  39. </refsynopsisdiv>
  40. <refsect1 id="pam_access-description">
  41. <title>DESCRIPTION</title>
  42. <para>
  43. The pam_access PAM module is mainly for access management.
  44. It provides logdaemon style login access control based on login
  45. names, host or domain names, internet addresses or network numbers,
  46. or on terminal line names, X <varname>$DISPLAY</varname> values,
  47. or PAM service names in case of non-networked logins.
  48. </para>
  49. <para>
  50. By default rules for access management are taken from config file
  51. <filename>/etc/security/access.conf</filename> if you don't specify
  52. another file.
  53. Then individual <filename>*.conf</filename> files from the
  54. <filename>/etc/security/access.d/</filename> directory are read.
  55. The files are parsed one after another in the order of the system locale.
  56. The effect of the individual files is the same as if all the files were
  57. concatenated together in the order of parsing. This means that once
  58. a pattern is matched in some file no further files are parsed.
  59. If a config file is explicitly specified with the <option>accessfile</option>
  60. option the files in the above directory are not parsed.
  61. </para>
  62. <para>
  63. If Linux PAM is compiled with audit support the module will report
  64. when it denies access based on origin (host, tty, etc.).
  65. </para>
  66. </refsect1>
  67. <refsect1 id="pam_access-options">
  68. <title>OPTIONS</title>
  69. <variablelist>
  70. <varlistentry>
  71. <term>
  72. <option>accessfile=<replaceable>/path/to/access.conf</replaceable></option>
  73. </term>
  74. <listitem>
  75. <para>
  76. Indicate an alternative <filename>access.conf</filename>
  77. style configuration file to override the default. This can
  78. be useful when different services need different access lists.
  79. </para>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry>
  83. <term>
  84. <option>debug</option>
  85. </term>
  86. <listitem>
  87. <para>
  88. A lot of debug information is printed with
  89. <citerefentry><refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
  90. </para>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry>
  94. <term>
  95. <option>noaudit</option>
  96. </term>
  97. <listitem>
  98. <para>
  99. Do not report logins from disallowed hosts and ttys to the audit subsystem.
  100. </para>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry>
  104. <term>
  105. <option>fieldsep=<replaceable>separators</replaceable></option>
  106. </term>
  107. <listitem>
  108. <para>
  109. This option modifies the field separator character that
  110. pam_access will recognize when parsing the access
  111. configuration file. For example:
  112. <emphasis remap='B'>fieldsep=|</emphasis> will cause the
  113. default `:' character to be treated as part of a field value
  114. and `|' becomes the field separator. Doing this may be
  115. useful in conjunction with a system that wants to use
  116. pam_access with X based applications, since the
  117. <emphasis remap='B'>PAM_TTY</emphasis> item is likely to be
  118. of the form "hostname:0" which includes a `:' character in
  119. its value. But you should not need this.
  120. </para>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry>
  124. <term>
  125. <option>listsep=<replaceable>separators</replaceable></option>
  126. </term>
  127. <listitem>
  128. <para>
  129. This option modifies the list separator character that
  130. pam_access will recognize when parsing the access
  131. configuration file. For example:
  132. <emphasis remap='B'>listsep=,</emphasis> will cause the
  133. default ` ' (space) and `\t' (tab) characters to be treated
  134. as part of a list element value and `,' becomes the only
  135. list element separator. Doing this may be useful on a system
  136. with group information obtained from a Windows domain,
  137. where the default built-in groups "Domain Users",
  138. "Domain Admins" contain a space.
  139. </para>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry>
  143. <term>
  144. <option>nodefgroup</option>
  145. </term>
  146. <listitem>
  147. <para>
  148. User tokens which are not enclosed in parentheses will not be
  149. matched against the group database. The backwards compatible default is
  150. to try the group database match even for tokens not enclosed
  151. in parentheses.
  152. </para>
  153. </listitem>
  154. </varlistentry>
  155. </variablelist>
  156. </refsect1>
  157. <refsect1 id="pam_access-types">
  158. <title>MODULE TYPES PROVIDED</title>
  159. <para>
  160. All module types (<option>auth</option>, <option>account</option>,
  161. <option>password</option> and <option>session</option>) are provided.
  162. </para>
  163. </refsect1>
  164. <refsect1 id="pam_access-return_values">
  165. <title>RETURN VALUES</title>
  166. <variablelist>
  167. <varlistentry>
  168. <term>PAM_SUCCESS</term>
  169. <listitem>
  170. <para>
  171. Access was granted.
  172. </para>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry>
  176. <term>PAM_PERM_DENIED</term>
  177. <listitem>
  178. <para>
  179. Access was not granted.
  180. </para>
  181. </listitem>
  182. </varlistentry>
  183. <varlistentry>
  184. <term>PAM_IGNORE</term>
  185. <listitem>
  186. <para>
  187. <function>pam_setcred</function> was called which does nothing.
  188. </para>
  189. </listitem>
  190. </varlistentry>
  191. <varlistentry>
  192. <term>PAM_ABORT</term>
  193. <listitem>
  194. <para>
  195. Not all relevant data or options could be gotten.
  196. </para>
  197. </listitem>
  198. </varlistentry>
  199. <varlistentry>
  200. <term>PAM_USER_UNKNOWN</term>
  201. <listitem>
  202. <para>
  203. The user is not known to the system.
  204. </para>
  205. </listitem>
  206. </varlistentry>
  207. </variablelist>
  208. </refsect1>
  209. <refsect1 id="pam_access-files">
  210. <title>FILES</title>
  211. <variablelist>
  212. <varlistentry>
  213. <term><filename>/etc/security/access.conf</filename></term>
  214. <listitem>
  215. <para>Default configuration file</para>
  216. </listitem>
  217. </varlistentry>
  218. </variablelist>
  219. </refsect1>
  220. <refsect1 id="pam_access-see_also">
  221. <title>SEE ALSO</title>
  222. <para>
  223. <citerefentry>
  224. <refentrytitle>access.conf</refentrytitle><manvolnum>5</manvolnum>
  225. </citerefentry>,
  226. <citerefentry>
  227. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  228. </citerefentry>,
  229. <citerefentry>
  230. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  231. </citerefentry>.
  232. </para>
  233. </refsect1>
  234. <refsect1 id="pam_access-authors">
  235. <title>AUTHORS</title>
  236. <para>
  237. The logdaemon style login access control scheme was designed and implemented by
  238. Wietse Venema.
  239. The pam_access PAM module was developed by
  240. Alexei Nogin &lt;alexei@nogin.dnttm.ru&gt;.
  241. The IPv6 support and the network(address) / netmask feature
  242. was developed and provided by Mike Becher &lt;mike.becher@lrz-muenchen.de&gt;.
  243. </para>
  244. </refsect1>
  245. </refentry>