pam_shells.8.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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_shells">
  5. <refmeta>
  6. <refentrytitle>pam_shells</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_shells-name">
  11. <refname>pam_shells</refname>
  12. <refpurpose>PAM module to check for valid login shell</refpurpose>
  13. </refnamediv>
  14. <refsynopsisdiv>
  15. <cmdsynopsis id="pam_shells-cmdsynopsis">
  16. <command>pam_shells.so</command>
  17. </cmdsynopsis>
  18. </refsynopsisdiv>
  19. <refsect1 id="pam_shells-description">
  20. <title>DESCRIPTION</title>
  21. <para>
  22. pam_shells is a PAM module that only allows access to the
  23. system if the user's shell is listed in <filename>/etc/shells</filename>.
  24. </para>
  25. <para>
  26. It also checks if <filename>/etc/shells</filename> is a plain
  27. file and not world writable.
  28. </para>
  29. </refsect1>
  30. <refsect1 id="pam_shells-options">
  31. <title>OPTIONS</title>
  32. <para> This module does not recognise any options.</para>
  33. </refsect1>
  34. <refsect1 id="pam_shells-types">
  35. <title>MODULE TYPES PROVIDED</title>
  36. <para>
  37. The <option>auth</option> and <option>account</option>
  38. module types are provided.
  39. </para>
  40. </refsect1>
  41. <refsect1 id='pam_shells-return_values'>
  42. <title>RETURN VALUES</title>
  43. <variablelist>
  44. <varlistentry>
  45. <term>PAM_AUTH_ERR</term>
  46. <listitem>
  47. <para>
  48. Access to the system was denied.
  49. </para>
  50. </listitem>
  51. </varlistentry>
  52. <varlistentry>
  53. <term>PAM_SUCCESS</term>
  54. <listitem>
  55. <para>
  56. The user's login shell was listed as valid shell in
  57. <filename>/etc/shells</filename>.
  58. </para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry>
  62. <term>PAM_SERVICE_ERR</term>
  63. <listitem>
  64. <para>
  65. The module was not able to get the name of the user.
  66. </para>
  67. </listitem>
  68. </varlistentry>
  69. </variablelist>
  70. </refsect1>
  71. <refsect1 id='pam_shells-examples'>
  72. <title>EXAMPLES</title>
  73. <para>
  74. <programlisting>
  75. auth required pam_shells.so
  76. </programlisting>
  77. </para>
  78. </refsect1>
  79. <refsect1 id='pam_shells-see_also'>
  80. <title>SEE ALSO</title>
  81. <para>
  82. <citerefentry>
  83. <refentrytitle>shells</refentrytitle><manvolnum>5</manvolnum>
  84. </citerefentry>,
  85. <citerefentry>
  86. <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
  87. </citerefentry>,
  88. <citerefentry>
  89. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  90. </citerefentry>,
  91. <citerefentry>
  92. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  93. </citerefentry>
  94. </para>
  95. </refsect1>
  96. <refsect1 id='pam_shells-author'>
  97. <title>AUTHOR</title>
  98. <para>
  99. pam_shells was written by Erik Troan &lt;ewt@redhat.com&gt;.
  100. </para>
  101. </refsect1>
  102. </refentry>