pam_rootok.8.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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_rootok">
  5. <refmeta>
  6. <refentrytitle>pam_rootok</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_rootok-name">
  11. <refname>pam_rootok</refname>
  12. <refpurpose>Gain only root access</refpurpose>
  13. </refnamediv>
  14. <refsynopsisdiv>
  15. <cmdsynopsis id="pam_rootok-cmdsynopsis">
  16. <command>pam_rootok.so</command>
  17. <arg choice="opt">
  18. debug
  19. </arg>
  20. </cmdsynopsis>
  21. </refsynopsisdiv>
  22. <refsect1 id="pam_rootok-description">
  23. <title>DESCRIPTION</title>
  24. <para>
  25. pam_rootok is a PAM module that authenticates the user if their
  26. <emphasis>UID</emphasis> is <emphasis>0</emphasis>.
  27. Applications that are created setuid-root generally retain the
  28. <emphasis>UID</emphasis> of the user but run with the authority
  29. of an enhanced effective-UID. It is the real <emphasis>UID</emphasis>
  30. that is checked.
  31. </para>
  32. </refsect1>
  33. <refsect1 id="pam_rootok-options">
  34. <title>OPTIONS</title>
  35. <variablelist>
  36. <varlistentry>
  37. <term>
  38. <option>debug</option>
  39. </term>
  40. <listitem>
  41. <para>
  42. Print debug information.
  43. </para>
  44. </listitem>
  45. </varlistentry>
  46. </variablelist>
  47. </refsect1>
  48. <refsect1 id="pam_rootok-types">
  49. <title>MODULE TYPES PROVIDED</title>
  50. <para>
  51. The <option>auth</option>, <option>account</option> and
  52. <option>password</option> module types are provided.
  53. </para>
  54. </refsect1>
  55. <refsect1 id='pam_rootok-return_values'>
  56. <title>RETURN VALUES</title>
  57. <variablelist>
  58. <varlistentry>
  59. <term>PAM_SUCCESS</term>
  60. <listitem>
  61. <para>
  62. The <emphasis>UID</emphasis> is <emphasis>0</emphasis>.
  63. </para>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry>
  67. <term>PAM_AUTH_ERR</term>
  68. <listitem>
  69. <para>
  70. The <emphasis>UID</emphasis> is <emphasis remap='B'>not</emphasis>
  71. <emphasis>0</emphasis>.
  72. </para>
  73. </listitem>
  74. </varlistentry>
  75. </variablelist>
  76. </refsect1>
  77. <refsect1 id='pam_rootok-examples'>
  78. <title>EXAMPLES</title>
  79. <para>
  80. In the case of the <citerefentry>
  81. <refentrytitle>su</refentrytitle><manvolnum>1</manvolnum>
  82. </citerefentry> application the historical usage is to
  83. permit the superuser to adopt the identity of a lesser user
  84. without the use of a password. To obtain this behavior with PAM
  85. the following pair of lines are needed for the corresponding entry
  86. in the <filename>/etc/pam.d/su</filename> configuration file:
  87. <programlisting>
  88. # su authentication. Root is granted access by default.
  89. auth sufficient pam_rootok.so
  90. auth required pam_unix.so
  91. </programlisting>
  92. </para>
  93. </refsect1>
  94. <refsect1 id='pam_rootok-see_also'>
  95. <title>SEE ALSO</title>
  96. <para>
  97. <citerefentry>
  98. <refentrytitle>su</refentrytitle><manvolnum>1</manvolnum>
  99. </citerefentry>,
  100. <citerefentry>
  101. <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
  102. </citerefentry>,
  103. <citerefentry>
  104. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  105. </citerefentry>,
  106. <citerefentry>
  107. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  108. </citerefentry>
  109. </para>
  110. </refsect1>
  111. <refsect1 id='pam_rootok-author'>
  112. <title>AUTHOR</title>
  113. <para>
  114. pam_rootok was written by Andrew G. Morgan, &lt;morgan@kernel.org&gt;.
  115. </para>
  116. </refsect1>
  117. </refentry>