Linux-PAM_SAG.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
  4. <book id="sag">
  5. <bookinfo>
  6. <title>The Linux-PAM System Administrators' Guide</title>
  7. <authorgroup>
  8. <author>
  9. <firstname>Andrew G.</firstname>
  10. <surname>Morgan</surname>
  11. <email>morgan@kernel.org</email>
  12. </author>
  13. <author>
  14. <firstname>Thorsten</firstname>
  15. <surname>Kukuk</surname>
  16. <email>kukuk@thkukuk.de</email>
  17. </author>
  18. </authorgroup>
  19. <releaseinfo>Version 1.1.2, 31. August 2010</releaseinfo>
  20. <abstract>
  21. <para>
  22. This manual documents what a system-administrator needs to know about
  23. the <emphasis remap='B'>Linux-PAM</emphasis> library. It covers the
  24. correct syntax of the PAM configuration file and discusses strategies
  25. for maintaining a secure system.
  26. </para>
  27. </abstract>
  28. </bookinfo>
  29. <chapter id='sag-introduction'>
  30. <title>Introduction</title>
  31. <para>
  32. <emphasis remap='B'>Linux-PAM</emphasis> (Pluggable Authentication
  33. Modules for Linux) is a suite of shared libraries that enable the
  34. local system administrator to choose how applications authenticate users.
  35. </para>
  36. <para>
  37. In other words, without (rewriting and) recompiling a PAM-aware
  38. application, it is possible to switch between the authentication
  39. mechanism(s) it uses. Indeed, one may entirely upgrade the local
  40. authentication system without touching the applications themselves.
  41. </para>
  42. <para>
  43. Historically an application that has required a given user to be
  44. authenticated, has had to be compiled to use a specific authentication
  45. mechanism. For example, in the case of traditional UN*X systems, the
  46. identity of the user is verified by the user entering a correct
  47. password. This password, after being prefixed by a two character
  48. ``salt'', is encrypted (with crypt(3)). The user is then authenticated
  49. if this encrypted password is identical to the second field of the
  50. user's entry in the system password database (the
  51. <filename>/etc/passwd</filename> file). On such systems, most if
  52. not all forms of privileges are granted based on this single
  53. authentication scheme. Privilege comes in the form of a personal
  54. user-identifier (UID) and membership of various groups. Services and
  55. applications are available based on the personal and group identity
  56. of the user. Traditionally, group membership has been assigned based
  57. on entries in the <filename>/etc/group</filename> file.
  58. </para>
  59. <para>
  60. It is the purpose of the <emphasis remap='B'>Linux-PAM</emphasis>
  61. project to separate the development of privilege granting software
  62. from the development of secure and appropriate authentication schemes.
  63. This is accomplished by providing a library of functions that an
  64. application may use to request that a user be authenticated. This
  65. PAM library is configured locally with a system file,
  66. <filename>/etc/pam.conf</filename> (or a series of configuration
  67. files located in <filename>/etc/pam.d/</filename>) to authenticate a
  68. user request via the locally available authentication modules. The
  69. modules themselves will usually be located in the directory
  70. <filename>/lib/security</filename> or
  71. <filename>/lib64/security</filename> and take the form of dynamically
  72. loadable object files (see <citerefentry>
  73. <refentrytitle>dlopen</refentrytitle><manvolnum>3</manvolnum>
  74. </citerefentry>).
  75. </para>
  76. </chapter>
  77. <chapter id="sag-text-conventions">
  78. <title>Some comments on the text</title>
  79. <para>
  80. Before proceeding to read the rest of this document, it should be
  81. noted that the text assumes that certain files are placed in certain
  82. directories. Where they have been specified, the conventions we adopt
  83. here for locating these files are those of the relevant RFC (RFC-86.0,
  84. see <link linkend="sag-see-also">bibliography"</link>). If you are
  85. using a distribution of Linux (or some other operating system) that
  86. supports PAM but chooses to distribute these files in a different way
  87. you should be careful when copying examples directly from the text.
  88. </para>
  89. <para>
  90. As an example of the above, where it is explicit, the text assumes
  91. that PAM loadable object files (the
  92. <emphasis remap='B'>modules</emphasis>) are to be located in
  93. the following directory: <filename>/lib/security/</filename> or
  94. <filename>/lib64/security</filename> depending on the architecture.
  95. This is generally the location that seems to be compatible with the
  96. Filesystem Hierarchy Standard (FHS). On Solaris, which has its own
  97. licensed version of PAM, and some other implementations of UN*X,
  98. these files can be found in <filename>/usr/lib/security</filename>.
  99. Please be careful to perform the necessary transcription when using
  100. the examples from the text.
  101. </para>
  102. </chapter>
  103. <chapter id="sag-overview">
  104. <title>Overview</title>
  105. <para>
  106. For the uninitiated, we begin by considering an example. We take an
  107. application that grants some service to users;
  108. <command>login</command> is one such program.
  109. <command>Login</command> does two things, it first establishes that
  110. the requesting user is whom they claim to be and second provides
  111. them with the requested service: in the case of
  112. <command>login</command> the service is a command shell
  113. (bash, tcsh, zsh, etc.) running with the identity of the user.
  114. </para>
  115. <para>
  116. Traditionally, the former step is achieved by the
  117. <command>login</command> application prompting the user for a
  118. password and then verifying that it agrees with that located on
  119. the system; hence verifying that as far as the system is concerned
  120. the user is who they claim to be. This is the task that is delegated
  121. to <emphasis remap='B'>Linux-PAM</emphasis>.
  122. </para>
  123. <para>
  124. From the perspective of the application programmer (in this case
  125. the person that wrote the <command>login</command> application),
  126. <emphasis remap='B'>Linux-PAM</emphasis> takes care of this
  127. authentication task -- verifying the identity of the user.
  128. </para>
  129. <para>
  130. The flexibility of <emphasis remap='B'>Linux-PAM</emphasis> is
  131. that <emphasis>you</emphasis>, the system administrator, have
  132. the freedom to stipulate which authentication scheme is to be
  133. used. You have the freedom to set the scheme for any/all
  134. PAM-aware applications on your Linux system. That is, you can
  135. authenticate from anything as naive as
  136. <emphasis>simple trust</emphasis> (<command>pam_permit</command>)
  137. to something as paranoid as a combination of a retinal scan, a
  138. voice print and a one-time password!
  139. </para>
  140. <para>
  141. To illustrate the flexibility you face, consider the following
  142. situation: a system administrator (parent) wishes to improve the
  143. mathematical ability of her users (children). She can configure
  144. their favorite ``Shoot 'em up game'' (PAM-aware of course) to
  145. authenticate them with a request for the product of a couple of
  146. random numbers less than 12. It is clear that if the game is any
  147. good they will soon learn their
  148. <emphasis>multiplication tables</emphasis>. As they mature, the
  149. authentication can be upgraded to include (long) division!
  150. </para>
  151. <para>
  152. <emphasis remap='B'>Linux-PAM</emphasis> deals with four
  153. separate types of (management) task. These are:
  154. <emphasis>authentication management</emphasis>;
  155. <emphasis>account management</emphasis>;
  156. <emphasis>session management</emphasis>; and
  157. <emphasis>password management</emphasis>.
  158. The association of the preferred management scheme with the behavior
  159. of an application is made with entries in the relevant
  160. <emphasis remap='B'>Linux-PAM</emphasis> configuration file.
  161. The management functions are performed by <emphasis>modules</emphasis>
  162. specified in the configuration file. The syntax for this
  163. file is discussed in the section
  164. <link linkend="sag-configuration">below</link>.
  165. </para>
  166. <para>
  167. Here is a figure that describes the overall organization of
  168. <emphasis remap='B'>Linux-PAM</emphasis>:
  169. <programlisting>
  170. +----------------+
  171. | application: X |
  172. +----------------+ / +----------+ +================+
  173. | authentication-[----&gt;--\--] Linux- |--&lt;--| PAM config file|
  174. | + [----&lt;--/--] PAM | |================|
  175. |[conversation()][--+ \ | | | X auth .. a.so |
  176. +----------------+ | / +-n--n-----+ | X auth .. b.so |
  177. | | | __| | | _____/
  178. | service user | A | | |____,-----'
  179. | | | V A
  180. +----------------+ +------|-----|---------+ -----+------+
  181. +---u-----u----+ | | |
  182. | auth.... |--[ a ]--[ b ]--[ c ]
  183. +--------------+
  184. | acct.... |--[ b ]--[ d ]
  185. +--------------+
  186. | password |--[ b ]--[ c ]
  187. +--------------+
  188. | session |--[ e ]--[ c ]
  189. +--------------+
  190. </programlisting>
  191. By way of explanation, the left of the figure represents the
  192. application; application X. Such an application interfaces with the
  193. <emphasis remap='B'>Linux-PAM</emphasis> library and knows none of
  194. the specifics of its configured authentication method. The
  195. <emphasis remap='B'>Linux-PAM</emphasis> library (in the center)
  196. consults the contents of the PAM configuration file and loads the
  197. modules that are appropriate for application-X. These modules fall
  198. into one of four management groups (lower-center) and are stacked in
  199. the order they appear in the configuration file. These modules, when
  200. called by <emphasis remap='B'>Linux-PAM</emphasis>, perform the
  201. various authentication tasks for the application. Textual information,
  202. required from/or offered to the user, can be exchanged through the
  203. use of the application-supplied <emphasis>conversation</emphasis>
  204. function.
  205. </para>
  206. <para>
  207. If a program is going to use PAM, then it has to have PAM
  208. functions explicitly coded into the program. If you have
  209. access to the source code you can add the appropriate PAM
  210. functions. If you do not have access to the source code, and
  211. the binary does not have the PAM functions included, then
  212. it is not possible to use PAM.
  213. </para>
  214. </chapter>
  215. <chapter id="sag-configuration">
  216. <title>The Linux-PAM configuration file</title>
  217. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  218. href="../man/pam.conf-desc.xml"
  219. xpointer='xpointer(//section[@id = "pam.conf-desc"]/*)' />
  220. <section id='sag-configuration-file'>
  221. <title>Configuration file syntax</title>
  222. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  223. href="../man/pam.conf-syntax.xml"
  224. xpointer='xpointer(//section[@id = "pam.conf-syntax"]/*)' />
  225. </section>
  226. <section id='sag-configuration-directory'>
  227. <title>Directory based configuration</title>
  228. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  229. href="../man/pam.conf-dir.xml"
  230. xpointer='xpointer(//section[@id = "pam.conf-dir"]/*)' />
  231. </section>
  232. <section id='sag-configuration-example'>
  233. <title>Example configuration file entries</title>
  234. <para>
  235. In this section, we give some examples of entries that can
  236. be present in the <emphasis remap='B'>Linux-PAM</emphasis>
  237. configuration file. As a first attempt at configuring your
  238. system you could do worse than to implement these.
  239. </para>
  240. <para>
  241. If a system is to be considered secure, it had better have a
  242. reasonably secure '<emphasis remap='B'>other</emphasis> entry.
  243. The following is a paranoid setting (which is not a bad place
  244. to start!):
  245. </para>
  246. <programlisting>
  247. #
  248. # default; deny access
  249. #
  250. other auth required pam_deny.so
  251. other account required pam_deny.so
  252. other password required pam_deny.so
  253. other session required pam_deny.so
  254. </programlisting>
  255. <para>
  256. Whilst fundamentally a secure default, this is not very
  257. sympathetic to a misconfigured system. For example, such
  258. a system is vulnerable to locking everyone out should the
  259. rest of the file become badly written.
  260. </para>
  261. <para>
  262. The module <command>pam_deny</command> (documented in a
  263. <link linkend="sag-pam_deny">later section</link>) is not very
  264. sophisticated. For example, it logs no information when it
  265. is invoked so unless the users of a system contact the
  266. administrator when failing to execute a service application,
  267. the administrator may go for a long while in ignorance of the
  268. fact that his system is misconfigured.
  269. </para>
  270. <para>
  271. The addition of the following line before those in the above
  272. example would provide a suitable warning to the administrator.
  273. </para>
  274. <programlisting>
  275. #
  276. # default; wake up! This application is not configured
  277. #
  278. other auth required pam_warn.so
  279. other password required pam_warn.so
  280. </programlisting>
  281. <para>
  282. Having two '<command>other auth</command>' lines is an
  283. example of stacking.
  284. </para>
  285. <para>
  286. On a system that uses the <filename>/etc/pam.d/</filename>
  287. configuration, the corresponding default setup would be
  288. achieved with the following file:
  289. </para>
  290. <programlisting>
  291. #
  292. # default configuration: /etc/pam.d/other
  293. #
  294. auth required pam_warn.so
  295. auth required pam_deny.so
  296. account required pam_deny.so
  297. password required pam_warn.so
  298. password required pam_deny.so
  299. session required pam_deny.so
  300. </programlisting>
  301. <para>
  302. This is the only explicit example we give for an
  303. <filename>/etc/pam.d/</filename> file. In general, it
  304. should be clear how to transpose the remaining examples
  305. to this configuration scheme.
  306. </para>
  307. <para>
  308. On a less sensitive computer, one on which the system
  309. administrator wishes to remain ignorant of much of the
  310. power of <emphasis remap='B'>Linux-PAM</emphasis>, the
  311. following selection of lines (in
  312. <filename>/etc/pam.d/other</filename>) is likely to
  313. mimic the historically familiar Linux setup.
  314. </para>
  315. <programlisting>
  316. #
  317. # default; standard UN*X access
  318. #
  319. auth required pam_unix.so
  320. account required pam_unix.so
  321. password required pam_unix.so
  322. session required pam_unix.so
  323. </programlisting>
  324. <para>
  325. In general this will provide a starting place for most applications.
  326. </para>
  327. </section>
  328. </chapter>
  329. <chapter id='sag-security-issues'>
  330. <title>Security issues</title>
  331. <section id='sag-security-issues-wrong'>
  332. <title>If something goes wrong</title>
  333. <para>
  334. <emphasis remap='B'>Linux-PAM</emphasis> has the potential
  335. to seriously change the security of your system. You can
  336. choose to have no security or absolute security (no access
  337. permitted). In general, <emphasis remap='B'>Linux-PAM</emphasis>
  338. errs towards the latter. Any number of configuration errors
  339. can disable access to your system partially, or completely.
  340. </para>
  341. <para>
  342. The most dramatic problem that is likely to be encountered when
  343. configuring <emphasis remap='B'>Linux-PAM</emphasis> is that of
  344. <emphasis>deleting</emphasis> the configuration file(s):
  345. <filename>/etc/pam.d/*</filename> and/or
  346. <filename>/etc/pam.conf</filename>. This will lock you out of
  347. your own system!
  348. </para>
  349. <para>
  350. To recover, your best bet is to restore the system from a
  351. backup or boot the system into a rescue system and correct
  352. things from there.
  353. </para>
  354. </section>
  355. <section id='sag-security-issues-other'>
  356. <title>Avoid having a weak `other' configuration</title>
  357. <para>
  358. It is not a good thing to have a weak default
  359. (<emphasis remap='B'>other</emphasis>) entry.
  360. This service is the default configuration for all PAM aware
  361. applications and if it is weak, your system is likely to be
  362. vulnerable to attack.
  363. </para>
  364. <para>
  365. Here is a sample "other" configuration file. The
  366. <command>pam_deny</command> module will deny access and the
  367. <command>pam_warn</command> module will send a syslog message
  368. to <emphasis>auth.notice</emphasis>:
  369. </para>
  370. <programlisting>
  371. #
  372. # The PAM configuration file for the `other' service
  373. #
  374. auth required pam_deny.so
  375. auth required pam_warn.so
  376. account required pam_deny.so
  377. account required pam_warn.so
  378. password required pam_deny.so
  379. password required pam_warn.so
  380. session required pam_deny.so
  381. session required pam_warn.so
  382. </programlisting>
  383. </section>
  384. </chapter>
  385. <chapter id='sag-module-reference'>
  386. <title>A reference guide for available modules</title>
  387. <para>
  388. Here, we collect together the descriptions of the various modules
  389. coming with Linux-PAM.
  390. </para>
  391. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  392. href="pam_access.xml"/>
  393. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  394. href="pam_debug.xml"/>
  395. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  396. href="pam_deny.xml"/>
  397. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  398. href="pam_echo.xml"/>
  399. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  400. href="pam_env.xml"/>
  401. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  402. href="pam_exec.xml"/>
  403. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  404. href="pam_faildelay.xml"/>
  405. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  406. href="pam_filter.xml"/>
  407. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  408. href="pam_ftp.xml"/>
  409. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  410. href="pam_group.xml"/>
  411. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  412. href="pam_issue.xml"/>
  413. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  414. href="pam_keyinit.xml"/>
  415. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  416. href="pam_lastlog.xml"/>
  417. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  418. href="pam_limits.xml"/>
  419. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  420. href="pam_listfile.xml"/>
  421. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  422. href="pam_localuser.xml"/>
  423. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  424. href="pam_loginuid.xml"/>
  425. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  426. href="pam_mail.xml"/>
  427. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  428. href="pam_mkhomedir.xml"/>
  429. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  430. href="pam_motd.xml"/>
  431. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  432. href="pam_namespace.xml"/>
  433. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  434. href="pam_nologin.xml"/>
  435. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  436. href="pam_permit.xml"/>
  437. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  438. href="pam_pwhistory.xml"/>
  439. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  440. href="pam_rhosts.xml"/>
  441. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  442. href="pam_rootok.xml"/>
  443. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  444. href="pam_securetty.xml"/>
  445. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  446. href="pam_selinux.xml"/>
  447. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  448. href="pam_shells.xml"/>
  449. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  450. href="pam_succeed_if.xml"/>
  451. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  452. href="pam_time.xml"/>
  453. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  454. href="pam_timestamp.xml"/>
  455. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  456. href="pam_umask.xml"/>
  457. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  458. href="pam_unix.xml"/>
  459. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  460. href="pam_userdb.xml"/>
  461. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  462. href="pam_warn.xml"/>
  463. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  464. href="pam_wheel.xml"/>
  465. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  466. href="pam_xauth.xml"/>
  467. </chapter>
  468. <chapter id="sag-see-also">
  469. <title>See also</title>
  470. <itemizedlist>
  471. <listitem>
  472. <para>
  473. The Linux-PAM Application Writers' Guide.
  474. </para>
  475. </listitem>
  476. <listitem>
  477. <para>
  478. The Linux-PAM Module Writers' Guide.
  479. </para>
  480. </listitem>
  481. <listitem>
  482. <para>
  483. The V. Samar and R. Schemers (SunSoft), ``UNIFIED LOGIN WITH
  484. PLUGGABLE AUTHENTICATION MODULES'', Open Software Foundation
  485. Request For Comments 86.0, October 1995.
  486. </para>
  487. </listitem>
  488. </itemizedlist>
  489. </chapter>
  490. <chapter id='sag-author'>
  491. <title>Author/acknowledgments</title>
  492. <para>
  493. This document was written by Andrew G. Morgan (morgan@kernel.org)
  494. with many contributions from
  495. Chris Adams, Peter Allgeyer, Tim Baverstock, Tim Berger,
  496. Craig S. Bell, Derrick J. Brashear, Ben Buxton, Seth Chaiklin,
  497. Oliver Crow, Chris Dent, Marc Ewing, Cristian Gafton,
  498. Emmanuel Galanos, Brad M. Garcia, Eric Hester, Michel D'Hooge,
  499. Roger Hu, Eric Jacksch, Michael K. Johnson, David Kinchlea,
  500. Olaf Kirch, Marcin Korzonek, Thorsten Kukuk, Stephen Langasek,
  501. Nicolai Langfeldt, Elliot Lee, Luke Kenneth Casson Leighton,
  502. Al Longyear, Ingo Luetkebohle, Marek Michalkiewicz,
  503. Robert Milkowski, Aleph One, Martin Pool, Sean Reifschneider,
  504. Jan Rekorajski, Erik Troan, Theodore Ts'o, Jeff Uphoff, Myles Uyema,
  505. Savochkin Andrey Vladimirovich, Ronald Wahl, David Wood, John Wilmes,
  506. Joseph S. D. Yao and Alex O. Yuriev.
  507. </para>
  508. <para>
  509. Thanks are also due to Sun Microsystems, especially to Vipin Samar and
  510. Charlie Lai for their advice. At an early stage in the development of
  511. <emphasis remap='B'>Linux-PAM</emphasis>, Sun graciously made the
  512. documentation for their implementation of PAM available. This act
  513. greatly accelerated the development of
  514. <emphasis remap='B'>Linux-PAM</emphasis>.
  515. </para>
  516. </chapter>
  517. <chapter id='sag-copyright'>
  518. <title>Copyright information for this document</title>
  519. <programlisting>
  520. Copyright (c) 2006 Thorsten Kukuk &lt;kukuk@thkukuk.de&gt;
  521. Copyright (c) 1996-2002 Andrew G. Morgan &lt;morgan@kernel.org&gt;
  522. </programlisting>
  523. <para>
  524. Redistribution and use in source and binary forms, with or without
  525. modification, are permitted provided that the following conditions are
  526. met:
  527. </para>
  528. <programlisting>
  529. 1. Redistributions of source code must retain the above copyright
  530. notice, and the entire permission notice in its entirety,
  531. including the disclaimer of warranties.
  532. 2. Redistributions in binary form must reproduce the above copyright
  533. notice, this list of conditions and the following disclaimer in the
  534. documentation and/or other materials provided with the distribution.
  535. 3. The name of the author may not be used to endorse or promote
  536. products derived from this software without specific prior
  537. written permission.
  538. </programlisting>
  539. <para>
  540. Alternatively, this product may be distributed under the terms of
  541. the GNU General Public License (GPL), in which case the provisions
  542. of the GNU GPL are required instead of the above restrictions.
  543. (This clause is necessary due to a potential bad interaction between
  544. the GNU GPL and the restrictions contained in a BSD-style copyright.)
  545. </para>
  546. <programlisting>
  547. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  548. WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  549. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  550. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  551. INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  552. BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  553. OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  554. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
  555. TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  556. USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  557. </programlisting>
  558. </chapter>
  559. </book>