[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[b4b71892] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[7eaa8018] | 7 | <!ENTITY linux-pam-download-http "https://github.com/linux-pam/linux-pam/releases/download/v&linux-pam-version;/Linux-PAM-&linux-pam-version;.tar.xz">
|
---|
[1ae6204] | 8 | <!ENTITY linux-pam-download-ftp " ">
|
---|
[3c1cfcf7] | 9 | <!ENTITY linux-pam-md5sum "41a10af5fc35a7be472ae9864338e64a">
|
---|
| 10 | <!ENTITY linux-pam-size "1.0 MB">
|
---|
[d732663] | 11 | <!ENTITY linux-pam-buildsize "39 MB (with tests)">
|
---|
[10bfa7e0] | 12 | <!ENTITY linux-pam-time "0.4 SBU (with tests)">
|
---|
[7eaa8018] | 13 |
|
---|
[c246bfab] | 14 | <!ENTITY linux-pam-docs-download "https://github.com/linux-pam/linux-pam/releases/download/v&linux-pam-version;/Linux-PAM-&linux-pam-docs-version;-docs.tar.xz">
|
---|
[3c1cfcf7] | 15 | <!ENTITY linux-pam-docs-md5sum "db41b71435df078658b3db1f57bb2a49">
|
---|
[516e46e3] | 16 | <!ENTITY linux-pam-docs-size "456 KB">
|
---|
[7eaa8018] | 17 | <!--
|
---|
[1ae6204] | 18 | <!ENTITY debian-pam-docs "http://debian.securedservers.com/kernel/pub/linux/libs/pam">
|
---|
[7eaa8018] | 19 | -->
|
---|
[b4b71892] | 20 | ]>
|
---|
| 21 |
|
---|
[6603f8b] | 22 | <sect1 id="linux-pam" xreflabel="Linux-PAM-&linux-pam-version;">
|
---|
| 23 | <?dbhtml filename="linux-pam.html"?>
|
---|
[c7eb655] | 24 |
|
---|
| 25 |
|
---|
[6603f8b] | 26 | <title>Linux-PAM-&linux-pam-version;</title>
|
---|
[c7eb655] | 27 |
|
---|
[6603f8b] | 28 | <indexterm zone="linux-pam">
|
---|
| 29 | <primary sortas="a-Linux-PAM">Linux-PAM</primary>
|
---|
[c7eb655] | 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
[db248d06] | 33 | <title>Introduction to Linux PAM</title>
|
---|
[c7eb655] | 34 |
|
---|
[db248d06] | 35 | <para>
|
---|
| 36 | The <application>Linux PAM</application> package contains
|
---|
[7f70be6] | 37 | Pluggable Authentication Modules used by the local
|
---|
| 38 | system administrator to control how application programs authenticate
|
---|
[db248d06] | 39 | users.
|
---|
| 40 | </para>
|
---|
[c7eb655] | 41 |
|
---|
[b9874725] | 42 | &lfs121_checked;
|
---|
[f4797d2] | 43 |
|
---|
[c7eb655] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[db248d06] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&linux-pam-download-http;"/>
|
---|
| 49 | </para>
|
---|
[c7eb655] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[db248d06] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&linux-pam-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[c7eb655] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[db248d06] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &linux-pam-md5sum;
|
---|
| 59 | </para>
|
---|
[c7eb655] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[db248d06] | 62 | <para>
|
---|
| 63 | Download size: &linux-pam-size;
|
---|
| 64 | </para>
|
---|
[c7eb655] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[db248d06] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &linux-pam-buildsize;
|
---|
| 69 | </para>
|
---|
[c7eb655] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[db248d06] | 72 | <para>
|
---|
| 73 | Estimated build time: &linux-pam-time;
|
---|
| 74 | </para>
|
---|
[c7eb655] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[db248d06] | 79 | <itemizedlist spacing="compact">
|
---|
[07f0c976] | 80 | <title>Optional Documentation</title>
|
---|
[c7eb655] | 81 | <listitem>
|
---|
[db248d06] | 82 | <para>
|
---|
| 83 | Download (HTTP): <ulink url="&linux-pam-docs-download;"/>
|
---|
| 84 | </para>
|
---|
[903f671] | 85 | </listitem>
|
---|
| 86 | <listitem>
|
---|
[db248d06] | 87 | <para>
|
---|
| 88 | Download MD5 sum: &linux-pam-docs-md5sum;
|
---|
| 89 | </para>
|
---|
[903f671] | 90 | </listitem>
|
---|
| 91 | <listitem>
|
---|
[db248d06] | 92 | <para>
|
---|
[090bbb9] | 93 | Download size: &linux-pam-docs-size;
|
---|
[db248d06] | 94 | </para>
|
---|
[6576f3e] | 95 | </listitem>
|
---|
| 96 | </itemizedlist>
|
---|
| 97 |
|
---|
[db248d06] | 98 | <bridgehead renderas="sect3">Linux PAM Dependencies</bridgehead>
|
---|
[c7eb655] | 99 |
|
---|
| 100 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[db248d06] | 101 | <para role="optional">
|
---|
[7e11b83c] | 102 | <xref linkend="libnsl"/>,
|
---|
[8558044] | 103 | <xref linkend="libtirpc"/>,
|
---|
[3c1cfcf7] | 104 | <xref linkend="rpcsvc-proto"/>,
|
---|
[a105c5c] | 105 | &berkeley-db;,
|
---|
[3c1cfcf7] | 106 | <ulink url="https://github.com/linux-audit/audit-userspace">libaudit</ulink>,
|
---|
| 107 | <ulink url="https://github.com/openSUSE/libeconf">libeconf</ulink>, and
|
---|
[cd29bc9] | 108 | <ulink url="https://www.prelude-siem.org">Prelude</ulink>
|
---|
[db248d06] | 109 | </para>
|
---|
[f8dd4ec] | 110 | <!-- With 1.5.3, building the doc requires the namespaced version of
|
---|
| 111 | docbook-xsl, which is beyond BLFS.
|
---|
[db248d06] | 112 |
|
---|
| 113 | <bridgehead renderas="sect4">Optional (To Rebuild the Documentation)</bridgehead>
|
---|
| 114 | <para role="optional">
|
---|
| 115 | <xref linkend="DocBook"/>,
|
---|
| 116 | <xref linkend="docbook-xsl"/>,
|
---|
| 117 | <xref linkend="fop"/>,
|
---|
[5ffb9f5] | 118 | <xref linkend="libxslt"/> and either
|
---|
[1eac9eb] | 119 | <xref linkend="lynx"/> or
|
---|
| 120 | <ulink url="&w3m-url;">W3m</ulink>
|
---|
[db248d06] | 121 | </para>
|
---|
[f8dd4ec] | 122 | -->
|
---|
[58dfbe3] | 123 | <note>
|
---|
| 124 | <para role="required">
|
---|
| 125 | <xref role="runtime" linkend="shadow"/>
|
---|
| 126 | <phrase revision="systemd"> and <xref role="runtime" linkend="systemd"/>
|
---|
[7f70be6] | 127 | must</phrase><phrase revision="sysv">must</phrase> be reinstalled
|
---|
| 128 | and reconfigured
|
---|
[58dfbe3] | 129 | after installing and configuring <application>Linux PAM</application>.
|
---|
| 130 | </para>
|
---|
[19d6c39] | 131 |
|
---|
| 132 | <para role="recommended">
|
---|
| 133 | With Linux-PAM-1.4.0 and higher, the pam_cracklib module is not
|
---|
[7f70be6] | 134 | installed by default. Use <xref role="runtime" linkend="libpwquality"/>
|
---|
| 135 | to enforce strong passwords.
|
---|
[19d6c39] | 136 | </para>
|
---|
[58dfbe3] | 137 | </note>
|
---|
| 138 |
|
---|
[c7eb655] | 139 | </sect2>
|
---|
| 140 |
|
---|
[5150d54] | 141 | <sect2 role="kernel" id="linux-pam-kernel">
|
---|
| 142 | <title>Kernel Configuration</title>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | For the PAM module <filename
|
---|
| 146 | class='libraryfile'>pam_loginuid.so</filename> (referred by
|
---|
| 147 | the PAM configuration file <filename>system-session</filename> if
|
---|
| 148 | <phrase revision='sysv'><xref linkend='elogind'/> is
|
---|
| 149 | built</phrase><phrase revision='systemd'><xref linkend='systemd'/> is
|
---|
| 150 | rebuilt with PAM support</phrase> later) to work,
|
---|
| 151 | a kernel configuration parameter need to be set or the module will
|
---|
| 152 | just do nothing:
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
| 155 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 156 | href="linux-pam-kernel.xml"/>
|
---|
| 157 |
|
---|
| 158 | <indexterm zone="linux-pam linux-pam-kernel">
|
---|
| 159 | <primary sortas="d-linux-pam">Linux-PAM</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
[c7eb655] | 164 | <sect2 role="installation">
|
---|
[db248d06] | 165 | <title>Installation of Linux PAM</title>
|
---|
[c7eb655] | 166 |
|
---|
[ad539dbe] | 167 | <para revision="sysv">
|
---|
[7f70be6] | 168 | First, prevent the installation of an unneeded systemd file:
|
---|
[ad539dbe] | 169 | </para>
|
---|
| 170 |
|
---|
| 171 | <screen revision="sysv"><userinput>sed -e /service_DATA/d \
|
---|
| 172 | -i modules/pam_namespace/Makefile.am &&
|
---|
| 173 | autoreconf</userinput></screen>
|
---|
| 174 |
|
---|
[db248d06] | 175 | <para>
|
---|
| 176 | If you downloaded the documentation, unpack the tarball by issuing
|
---|
| 177 | the following command.
|
---|
| 178 | </para>
|
---|
[903f671] | 179 |
|
---|
[f330e62] | 180 | <screen><userinput>tar -xf ../Linux-PAM-&linux-pam-docs-version;-docs.tar.xz --strip-components=1</userinput></screen>
|
---|
[f8dd4ec] | 181 | <!--
|
---|
[1eac9eb] | 182 | <para>
|
---|
[7f70be6] | 183 | If you want to regenerate the documentation yourself, fix the
|
---|
| 184 | <command>configure</command> script so it will detect lynx:
|
---|
[1eac9eb] | 185 | </para>
|
---|
| 186 |
|
---|
[ad539dbe] | 187 | <screen><userinput>sed -e 's/dummy elinks/dummy lynx/' \
|
---|
[1eac9eb] | 188 | -e 's/-no-numbering -no-references/-force-html -nonumbers -stdin/' \
|
---|
| 189 | -i configure</userinput></screen>
|
---|
[f8dd4ec] | 190 | -->
|
---|
[db248d06] | 191 | <para>
|
---|
[7f70be6] | 192 | Compile and link <application>Linux PAM</application> by
|
---|
[db248d06] | 193 | running the following commands:
|
---|
| 194 | </para>
|
---|
[c7eb655] | 195 |
|
---|
[2a77179] | 196 | <screen><userinput>./configure --prefix=/usr \
|
---|
[bf1e213] | 197 | --sbindir=/usr/sbin \
|
---|
| 198 | --sysconfdir=/etc \
|
---|
| 199 | --libdir=/usr/lib \
|
---|
| 200 | --enable-securedir=/usr/lib/security \
|
---|
[7cadfea] | 201 | --docdir=/usr/share/doc/Linux-PAM-&linux-pam-version; &&
|
---|
[c7eb655] | 202 | make</userinput></screen>
|
---|
[17fb537e] | 203 |
|
---|
[db248d06] | 204 | <para>
|
---|
[5c6a906] | 205 | To test the results, a suitable <filename>/etc/pam.d/other</filename>
|
---|
| 206 | configuration file must exist.
|
---|
| 207 | </para>
|
---|
| 208 |
|
---|
| 209 | <caution>
|
---|
[7f70be6] | 210 | <title>Reinstallation or Upgrade of Linux PAM</title>
|
---|
[5c6a906] | 211 | <para>
|
---|
| 212 | If you have a system with Linux PAM installed and working, be careful
|
---|
| 213 | when modifying the files in
|
---|
| 214 | <filename class="directory">/etc/pam.d</filename>, since your system
|
---|
| 215 | may become totally unusable. If you want to run the tests, you do not
|
---|
| 216 | need to create another <filename>/etc/pam.d/other</filename> file. The
|
---|
[7f70be6] | 217 | existing file can be used for the tests.
|
---|
[5c6a906] | 218 | </para>
|
---|
| 219 |
|
---|
| 220 | <para>
|
---|
| 221 | You should also be aware that <command>make install</command>
|
---|
| 222 | overwrites the configuration files in
|
---|
| 223 | <filename class="directory">/etc/security</filename> as well as
|
---|
[7f70be6] | 224 | <filename>/etc/environment</filename>. If you
|
---|
[7f92f72] | 225 | have modified those files, be sure to back them up.
|
---|
[5c6a906] | 226 | </para>
|
---|
| 227 | </caution>
|
---|
| 228 |
|
---|
| 229 | <para>
|
---|
[7f70be6] | 230 | For a first-time installation, create a configuration file by issuing the
|
---|
[5c6a906] | 231 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 232 | user:
|
---|
[db248d06] | 233 | </para>
|
---|
[903f671] | 234 |
|
---|
| 235 | <screen role="root"><userinput>install -v -m755 -d /etc/pam.d &&
|
---|
[c03a8bd] | 236 |
|
---|
[903f671] | 237 | cat > /etc/pam.d/other << "EOF"
|
---|
[51dfb3e] | 238 | <literal>auth required pam_deny.so
|
---|
[903f671] | 239 | account required pam_deny.so
|
---|
| 240 | password required pam_deny.so
|
---|
[51dfb3e] | 241 | session required pam_deny.so</literal>
|
---|
[903f671] | 242 | EOF</userinput></screen>
|
---|
[1ad238d8] | 243 |
|
---|
[db248d06] | 244 | <para>
|
---|
| 245 | Now run the tests by issuing <command>make check</command>.
|
---|
[7f70be6] | 246 | Be sure the tests produced no errors before continuing the
|
---|
| 247 | installation. Note that the tests are very long.
|
---|
| 248 | Redirect the output to a log file, so you can inspect it thoroughly.
|
---|
[db248d06] | 249 | </para>
|
---|
[903f671] | 250 |
|
---|
[db248d06] | 251 | <para>
|
---|
[7f70be6] | 252 | For a first-time installation, remove the configuration file
|
---|
[5c6a906] | 253 | created earlier by issuing the following command as the
|
---|
[db248d06] | 254 | <systemitem class="username">root</systemitem> user:
|
---|
| 255 | </para>
|
---|
[903f671] | 256 |
|
---|
[8d9c3ed] | 257 | <screen role="root"><userinput>rm -fv /etc/pam.d/other</userinput></screen>
|
---|
[f691f2b] | 258 |
|
---|
[db248d06] | 259 | <para>
|
---|
| 260 | Now, as the <systemitem class="username">root</systemitem>
|
---|
| 261 | user:
|
---|
| 262 | </para>
|
---|
[17fb537e] | 263 |
|
---|
[c7eb655] | 264 | <screen role="root"><userinput>make install &&
|
---|
[2a77179] | 265 | chmod -v 4755 /usr/sbin/unix_chkpwd</userinput></screen>
|
---|
[5ae7a99] | 266 |
|
---|
[c7eb655] | 267 | </sect2>
|
---|
[b4b71892] | 268 |
|
---|
[c7eb655] | 269 | <sect2 role="commands">
|
---|
| 270 | <title>Command Explanations</title>
|
---|
[b4b71892] | 271 |
|
---|
[db248d06] | 272 | <para>
|
---|
[2a77179] | 273 | <parameter>--enable-securedir=/usr/lib/security</parameter>:
|
---|
[e52afdd] | 274 | This switch sets the installation location for the
|
---|
[5ae7a99] | 275 | <application>PAM</application> modules.
|
---|
| 276 | </para>
|
---|
[caa9f5ba] | 277 | <!--
|
---|
[5ffb9f5] | 278 | <para>
|
---|
[caa9f5ba] | 279 | <option>- -disable-regenerate-docu</option> : If the needed dependencies
|
---|
[1eac9eb] | 280 | (<xref linkend="DocBook"/>, <xref linkend="docbook-xsl"/>, <xref
|
---|
| 281 | linkend="libxslt"/>, and <xref linkend="lynx"/> or <ulink
|
---|
| 282 | url="&w3m-url;">W3m</ulink>) are installed, the manual pages, and the
|
---|
[7f70be6] | 283 | html and text documentation files, are generated and installed.
|
---|
[1eac9eb] | 284 | Furthermore, if <xref linkend="fop"/> is installed, the PDF
|
---|
| 285 | documentation is generated and installed. Use this switch if you do not
|
---|
| 286 | want to rebuild the documentation.
|
---|
[5ffb9f5] | 287 | </para>
|
---|
[caa9f5ba] | 288 | -->
|
---|
[db248d06] | 289 | <para>
|
---|
[2a77179] | 290 | <command>chmod -v 4755 /usr/sbin/unix_chkpwd</command>:
|
---|
[54d58907] | 291 | The setuid bit for the <command>unix_chkpwd</command> helper program must be
|
---|
[7f70be6] | 292 | turned on, so that non-<systemitem class="username">root</systemitem>
|
---|
[db248d06] | 293 | processes can access the shadow file.
|
---|
| 294 | </para>
|
---|
| 295 |
|
---|
[c7eb655] | 296 | </sect2>
|
---|
[b4b71892] | 297 |
|
---|
[c7eb655] | 298 | <sect2 role="configuration">
|
---|
| 299 | <title>Configuring Linux-PAM</title>
|
---|
[b4b71892] | 300 |
|
---|
[c7eb655] | 301 | <sect3 id="pam-config">
|
---|
[7f70be6] | 302 | <title>Configuration Files</title>
|
---|
[b4b71892] | 303 |
|
---|
[db248d06] | 304 | <para>
|
---|
| 305 | <filename>/etc/security/*</filename> and
|
---|
| 306 | <filename>/etc/pam.d/*</filename>
|
---|
| 307 | </para>
|
---|
[b4b71892] | 308 |
|
---|
[6603f8b] | 309 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 310 | <primary sortas="e-etc-security">/etc/security/*</primary>
|
---|
| 311 | </indexterm>
|
---|
[b4b71892] | 312 |
|
---|
[6603f8b] | 313 | <indexterm zone="linux-pam pam-config">
|
---|
[c7eb655] | 314 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 315 | </indexterm>
|
---|
| 316 |
|
---|
| 317 | </sect3>
|
---|
| 318 |
|
---|
| 319 | <sect3>
|
---|
| 320 | <title>Configuration Information</title>
|
---|
| 321 |
|
---|
[db248d06] | 322 | <para>
|
---|
| 323 | Configuration information is placed in
|
---|
| 324 | <filename class="directory">/etc/pam.d/</filename>.
|
---|
[7f70be6] | 325 | Here is a sample file:
|
---|
[db248d06] | 326 | </para>
|
---|
[c7eb655] | 327 |
|
---|
| 328 | <screen><literal># Begin /etc/pam.d/other
|
---|
[b4b71892] | 329 |
|
---|
| 330 | auth required pam_unix.so nullok
|
---|
| 331 | account required pam_unix.so
|
---|
| 332 | session required pam_unix.so
|
---|
| 333 | password required pam_unix.so nullok
|
---|
| 334 |
|
---|
[db248d06] | 335 | # End /etc/pam.d/other</literal></screen>
|
---|
[b4b71892] | 336 |
|
---|
[47274444] | 337 | <para>
|
---|
[7f70be6] | 338 | Now create some generic configuration files. As the
|
---|
[f43bcd7] | 339 | <systemitem class="username">root</systemitem> user:
|
---|
[47274444] | 340 | </para>
|
---|
[78b5501] | 341 |
|
---|
[2ec7beca] | 342 | <screen role="root"><userinput>install -vdm755 /etc/pam.d &&
|
---|
| 343 | cat > /etc/pam.d/system-account << "EOF" &&
|
---|
[78b5501] | 344 | <literal># Begin /etc/pam.d/system-account
|
---|
| 345 |
|
---|
| 346 | account required pam_unix.so
|
---|
| 347 |
|
---|
| 348 | # End /etc/pam.d/system-account</literal>
|
---|
| 349 | EOF
|
---|
| 350 |
|
---|
[2ec7beca] | 351 | cat > /etc/pam.d/system-auth << "EOF" &&
|
---|
[78b5501] | 352 | <literal># Begin /etc/pam.d/system-auth
|
---|
| 353 |
|
---|
| 354 | auth required pam_unix.so
|
---|
| 355 |
|
---|
| 356 | # End /etc/pam.d/system-auth</literal>
|
---|
| 357 | EOF
|
---|
| 358 |
|
---|
[48dbad5] | 359 | cat > /etc/pam.d/system-session << "EOF" &&
|
---|
[78b5501] | 360 | <literal># Begin /etc/pam.d/system-session
|
---|
| 361 |
|
---|
| 362 | session required pam_unix.so
|
---|
| 363 |
|
---|
| 364 | # End /etc/pam.d/system-session</literal>
|
---|
[7e11b83c] | 365 | EOF
|
---|
[48dbad5] | 366 |
|
---|
[7e11b83c] | 367 | cat > /etc/pam.d/system-password << "EOF"
|
---|
| 368 | <literal># Begin /etc/pam.d/system-password
|
---|
[78b5501] | 369 |
|
---|
[c0464a8] | 370 | # use yescrypt hash for encryption, use shadow, and try to use any
|
---|
| 371 | # previously defined authentication token (chosen password) set by any
|
---|
| 372 | # prior module.
|
---|
| 373 | password required pam_unix.so yescrypt shadow try_first_pass
|
---|
[7e11b83c] | 374 |
|
---|
| 375 | # End /etc/pam.d/system-password</literal>
|
---|
| 376 | EOF
|
---|
| 377 | </userinput></screen>
|
---|
| 378 |
|
---|
| 379 | <para>
|
---|
| 380 | If you wish to enable strong password support, install
|
---|
| 381 | <xref linkend="libpwquality"/>, and follow the
|
---|
[7f70be6] | 382 | instructions on that page to configure the pam_pwquality
|
---|
[7e11b83c] | 383 | PAM module with strong password support.
|
---|
| 384 | </para>
|
---|
| 385 |
|
---|
[47274444] | 386 | <para>
|
---|
[7f70be6] | 387 | Next, add a restrictive <filename>/etc/pam.d/other</filename>
|
---|
[47274444] | 388 | configuration file. With this file, programs that are PAM aware will
|
---|
| 389 | not run unless a configuration file specifically for that application
|
---|
[7f70be6] | 390 | exists.
|
---|
[47274444] | 391 | </para>
|
---|
[74f20a1] | 392 |
|
---|
| 393 | <screen role="root"><userinput>cat > /etc/pam.d/other << "EOF"
|
---|
| 394 | <literal># Begin /etc/pam.d/other
|
---|
| 395 |
|
---|
| 396 | auth required pam_warn.so
|
---|
| 397 | auth required pam_deny.so
|
---|
| 398 | account required pam_warn.so
|
---|
| 399 | account required pam_deny.so
|
---|
| 400 | password required pam_warn.so
|
---|
| 401 | password required pam_deny.so
|
---|
| 402 | session required pam_warn.so
|
---|
| 403 | session required pam_deny.so
|
---|
| 404 |
|
---|
| 405 | # End /etc/pam.d/other</literal>
|
---|
[78b5501] | 406 | EOF</userinput></screen>
|
---|
| 407 |
|
---|
[db248d06] | 408 | <para>
|
---|
| 409 | The <application>PAM</application> man page (<command>man
|
---|
[7f70be6] | 410 | pam</command>) provides a good starting point to learn
|
---|
| 411 | about the several fields, and allowable entries.
|
---|
| 412 | <!-- not accessible 2022-09-08 -->
|
---|
| 413 | <!-- it's available at a different address 2022-10-23-->
|
---|
[cd29bc9] | 414 | The
|
---|
[7f70be6] | 415 | <ulink url="https://www.docs4dev.com/docs/en/linux-pam/1.1.2/reference/Linux-PAM_SAG.html">
|
---|
[47274444] | 416 | Linux-PAM System Administrators' Guide
|
---|
[7f70be6] | 417 | </ulink> is recommended for additional information.
|
---|
[db248d06] | 418 | </para>
|
---|
[47274444] | 419 |
|
---|
[ccb8b2d] | 420 | <important>
|
---|
[db248d06] | 421 | <para>
|
---|
| 422 | You should now reinstall the <xref linkend="shadow"/>
|
---|
[e2453ed5] | 423 | <phrase revision="sysv">package</phrase>
|
---|
[f586237] | 424 | <phrase revision="systemd"> and <xref linkend="systemd"/>
|
---|
[ae2e9fd8] | 425 | packages</phrase>.
|
---|
[db248d06] | 426 | </para>
|
---|
[ccb8b2d] | 427 | </important>
|
---|
[db248d06] | 428 |
|
---|
[c7eb655] | 429 | </sect3>
|
---|
[db248d06] | 430 |
|
---|
[c7eb655] | 431 | </sect2>
|
---|
| 432 |
|
---|
| 433 | <sect2 role="content">
|
---|
| 434 | <title>Contents</title>
|
---|
| 435 |
|
---|
| 436 | <segmentedlist>
|
---|
[ccb8b2d] | 437 | <segtitle>Installed Program</segtitle>
|
---|
[c7eb655] | 438 | <segtitle>Installed Libraries</segtitle>
|
---|
| 439 | <segtitle>Installed Directories</segtitle>
|
---|
| 440 |
|
---|
| 441 | <seglistitem>
|
---|
[db248d06] | 442 | <seg>
|
---|
[e52afdd] | 443 | faillock, mkhomedir_helper, pam_namespace_helper,
|
---|
| 444 | pam_timestamp_check, pwhistory_helper, unix_chkpwd and
|
---|
[db248d06] | 445 | unix_update
|
---|
| 446 | </seg>
|
---|
| 447 | <seg>
|
---|
| 448 | libpam.so, libpamc.so and libpam_misc.so
|
---|
| 449 | </seg>
|
---|
| 450 | <seg>
|
---|
| 451 | /etc/security,
|
---|
[d732663] | 452 | /usr/lib/security,
|
---|
[db248d06] | 453 | /usr/include/security and
|
---|
| 454 | /usr/share/doc/Linux-PAM-&linux-pam-version;
|
---|
| 455 | </seg>
|
---|
[c7eb655] | 456 | </seglistitem>
|
---|
| 457 | </segmentedlist>
|
---|
| 458 |
|
---|
| 459 | <variablelist>
|
---|
| 460 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 461 | <?dbfo list-presentation="list"?>
|
---|
| 462 | <?dbhtml list-presentation="table"?>
|
---|
| 463 |
|
---|
[7e11b83c] | 464 | <varlistentry id="faillock">
|
---|
| 465 | <term><command>faillock</command></term>
|
---|
| 466 | <listitem>
|
---|
| 467 | <para>
|
---|
[4c24eb0a] | 468 | displays and modifies the authentication failure record files
|
---|
[7e11b83c] | 469 | </para>
|
---|
| 470 | <indexterm zone="linux-pam faillock">
|
---|
| 471 | <primary sortas="b-faillock">faillock</primary>
|
---|
| 472 | </indexterm>
|
---|
| 473 | </listitem>
|
---|
| 474 | </varlistentry>
|
---|
| 475 |
|
---|
[db248d06] | 476 | <varlistentry id="mkhomedir_helper">
|
---|
| 477 | <term><command>mkhomedir_helper</command></term>
|
---|
| 478 | <listitem>
|
---|
| 479 | <para>
|
---|
[4c24eb0a] | 480 | is a helper binary that creates home directories
|
---|
[db248d06] | 481 | </para>
|
---|
| 482 | <indexterm zone="linux-pam mkhomedir_helper">
|
---|
| 483 | <primary sortas="b-mkhomedir_helper">mkhomedir_helper</primary>
|
---|
| 484 | </indexterm>
|
---|
| 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
| 487 |
|
---|
[e52afdd] | 488 | <varlistentry id="pam_namespace_helper">
|
---|
| 489 | <term><command>pam_namespace_helper</command></term>
|
---|
| 490 | <listitem>
|
---|
| 491 | <para>
|
---|
| 492 | is a helper program used to configure a private namespace for a
|
---|
[4c24eb0a] | 493 | user session
|
---|
[e52afdd] | 494 | </para>
|
---|
| 495 | <indexterm zone="linux-pam pam_namespace_helper">
|
---|
| 496 | <primary sortas="b-pam_namespace_helper">pam_namespace_helper</primary>
|
---|
| 497 | </indexterm>
|
---|
| 498 | </listitem>
|
---|
| 499 | </varlistentry>
|
---|
| 500 |
|
---|
| 501 | <varlistentry id="pwhistory_helper">
|
---|
| 502 | <term><command>pwhistory_helper</command></term>
|
---|
| 503 | <listitem>
|
---|
| 504 | <para>
|
---|
| 505 | is a helper program that transfers password hashes from passwd or
|
---|
[4c24eb0a] | 506 | shadow to opasswd
|
---|
[e52afdd] | 507 | </para>
|
---|
| 508 | <indexterm zone="linux-pam pwhistory_helper">
|
---|
| 509 | <primary sortas="b-pwhistory_helper">pwhistory_helper</primary>
|
---|
| 510 | </indexterm>
|
---|
| 511 | </listitem>
|
---|
| 512 | </varlistentry>
|
---|
[7e11b83c] | 513 | <!-- Removed with the removal of the pam_tally{,2} module
|
---|
[c7eb655] | 514 | <varlistentry id="pam_tally">
|
---|
| 515 | <term><command>pam_tally</command></term>
|
---|
| 516 | <listitem>
|
---|
[db248d06] | 517 | <para>
|
---|
| 518 | is used to interrogate and manipulate the login counter file.
|
---|
| 519 | </para>
|
---|
[6603f8b] | 520 | <indexterm zone="linux-pam pam_tally">
|
---|
[c7eb655] | 521 | <primary sortas="b-pam_tally">pam_tally</primary>
|
---|
| 522 | </indexterm>
|
---|
| 523 | </listitem>
|
---|
| 524 | </varlistentry>
|
---|
| 525 |
|
---|
[db248d06] | 526 | <varlistentry id="pam_tally2">
|
---|
| 527 | <term><command>pam_tally2</command></term>
|
---|
| 528 | <listitem>
|
---|
| 529 | <para>
|
---|
| 530 | is used to interrogate and manipulate the login counter file, but
|
---|
| 531 | does not have some limitations that <command>pam_tally</command>
|
---|
| 532 | does.
|
---|
| 533 | </para>
|
---|
| 534 | <indexterm zone="linux-pam pam_tally2">
|
---|
| 535 | <primary sortas="b-pam_tally2">pam_tally2</primary>
|
---|
| 536 | </indexterm>
|
---|
| 537 | </listitem>
|
---|
| 538 | </varlistentry>
|
---|
[7e11b83c] | 539 | -->
|
---|
[db248d06] | 540 |
|
---|
| 541 | <varlistentry id="pam_timestamp_check">
|
---|
| 542 | <term><command>pam_timestamp_check</command></term>
|
---|
| 543 | <listitem>
|
---|
| 544 | <para>
|
---|
| 545 | is used to check if the default timestamp is valid
|
---|
| 546 | </para>
|
---|
| 547 | <indexterm zone="linux-pam pam_timestamp_check">
|
---|
| 548 | <primary sortas="b-pam_timestamp_check">pam_timestamp_check</primary>
|
---|
| 549 | </indexterm>
|
---|
| 550 | </listitem>
|
---|
| 551 | </varlistentry>
|
---|
| 552 |
|
---|
| 553 | <varlistentry id="unix_chkpwd">
|
---|
| 554 | <term><command>unix_chkpwd</command></term>
|
---|
| 555 | <listitem>
|
---|
| 556 | <para>
|
---|
[4c24eb0a] | 557 | is a helper binary that verifies the password of the current user
|
---|
[db248d06] | 558 | </para>
|
---|
| 559 | <indexterm zone="linux-pam unix_chkpwd">
|
---|
| 560 | <primary sortas="b-unix_chkpwd">unix_chkpwd</primary>
|
---|
| 561 | </indexterm>
|
---|
| 562 | </listitem>
|
---|
| 563 | </varlistentry>
|
---|
| 564 |
|
---|
| 565 | <varlistentry id="unix_update">
|
---|
| 566 | <term><command>unix_update</command></term>
|
---|
| 567 | <listitem>
|
---|
| 568 | <para>
|
---|
[4c24eb0a] | 569 | is a helper binary that updates the password of a given user
|
---|
[db248d06] | 570 | </para>
|
---|
| 571 | <indexterm zone="linux-pam unix_update">
|
---|
| 572 | <primary sortas="b-unix_update">unix_update</primary>
|
---|
| 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
[c7eb655] | 577 | <varlistentry id="libpam">
|
---|
[db248d06] | 578 | <term><filename class="libraryfile">libpam.so</filename></term>
|
---|
[c7eb655] | 579 | <listitem>
|
---|
[db248d06] | 580 | <para>
|
---|
| 581 | provides the interfaces between applications and the
|
---|
[4c24eb0a] | 582 | PAM modules
|
---|
[db248d06] | 583 | </para>
|
---|
[6603f8b] | 584 | <indexterm zone="linux-pam libpam">
|
---|
[db248d06] | 585 | <primary sortas="c-libpam">libpam.so</primary>
|
---|
[c7eb655] | 586 | </indexterm>
|
---|
| 587 | </listitem>
|
---|
| 588 | </varlistentry>
|
---|
[db248d06] | 589 |
|
---|
[c7eb655] | 590 | </variablelist>
|
---|
[db248d06] | 591 |
|
---|
[c7eb655] | 592 | </sect2>
|
---|
[db248d06] | 593 |
|
---|
[3c52f859] | 594 | </sect1>
|
---|