Changeset 4fcf20a
- Timestamp:
- 03/23/2005 07:05:25 AM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/inkscape-core-mods, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/python-mods, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- fbbf93e
- Parents:
- f691f2b
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
general.ent
rf691f2b r4fcf20a 1 <!ENTITY day "2 2">1 <!ENTITY day "23"> 2 2 <!ENTITY month "03"> 3 3 <!ENTITY year "2005"> 4 4 <!ENTITY version "svn-&year;&month;&day;"> 5 <!ENTITY releasedate "March &day; nd, &year;">5 <!ENTITY releasedate "March &day;rd, &year;"> 6 6 <!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP --> 7 7 <!ENTITY blfs-version "cvs"> <!-- cvs|[release #] --> … … 33 33 <!ENTITY cracklib-version "2.7"> 34 34 <!ENTITY Linux_PAM-version "0.78"> 35 <!ENTITY shadow-version "4.0. 4.1">35 <!ENTITY shadow-version "4.0.7"> 36 36 <!ENTITY iptables-version "1.3.1"> 37 37 <!ENTITY gnupg-version "1.4.0"> … … 132 132 <!-- Chapter 12 --> 133 133 <!ENTITY Python-version "2.4"> 134 <!ENTITY LFS-Perl-version "5.8. 5">134 <!ENTITY LFS-Perl-version "5.8.6"> 135 135 <!ENTITY Module-Info-version "0.26"> 136 136 <!ENTITY Gtk-Perl-version "0.7009"> -
introduction/welcome/changelog.xml
rf691f2b r4fcf20a 23 23 <itemizedlist> 24 24 25 <listitem><para>March 23rd, 2005 [randy]: Updated to 26 Shadow-4.0.7</para></listitem> 27 25 28 <listitem><para>March 22nd, 2005 [randy]: Added the installation of 26 29 documentation to the Linux-PAM instructions.</para></listitem> -
introduction/welcome/credits.xml
rf691f2b r4fcf20a 153 153 FOP, GNOME Doc Utils, GnuCash (many additions), Heimdal, HTML Tidy, JadeTeX, 154 154 Java Access Bridge, libgail-gnome, libgnomecups, MPlayer (extensive overhaul), 155 PDL, Perl Modules, pilot-link, Samba 3 (many additions), S ANE (original156 instructions by Alex Kloss), SLIB, Stunnel and Sysstat:155 PDL, Perl Modules, pilot-link, Samba 3 (many additions), Shadow (rewrite), 156 SANE (original instructions by Alex Kloss), SLIB, Stunnel and Sysstat: 157 157 <emphasis>Randy McMurchy</emphasis></para></listitem> 158 158 -
postlfs/security/shadow.xml
rf691f2b r4fcf20a 6 6 7 7 <!ENTITY shadow-download-http " "> 8 <!ENTITY shadow-download-ftp "ftp://ftp.pld.org.pl/software/shadow/ old/shadow-&shadow-version;.tar.bz2">9 <!ENTITY shadow-md5sum " 3a3d17d3d7c630b602baf66ae7434c61">10 <!ENTITY shadow-size " 814 KB">11 <!ENTITY shadow-buildsize "1 4.1MB">12 <!ENTITY shadow-time "0. 42SBU">8 <!ENTITY shadow-download-ftp "ftp://ftp.pld.org.pl/software/shadow/shadow-&shadow-version;.tar.bz2"> 9 <!ENTITY shadow-md5sum "89ebec0d1c0d861a5bd5c4c63e5cb0cc"> 10 <!ENTITY shadow-size "1.0 MB"> 11 <!ENTITY shadow-buildsize "13.2 MB"> 12 <!ENTITY shadow-time "0.31 SBU"> 13 13 ]> 14 14 … … 22 22 <indexterm zone="shadow"> 23 23 <primary sortas="a-Shadow">Shadow</primary></indexterm> 24 25 <!--26 <sect2>27 <title>Configuring shadow</title>28 29 <para>Shadow's Configuration File</para>30 31 <para><userinput>/etc/login.defs</userinput></para>32 33 <para>Enabling <acronym>MD</acronym>5 Passwords</para>34 35 <para>To enable <acronym>MD</acronym>5 Passwords, modify the line in the36 <filename>login.defs</filename> file that reads:37 <screen><userinput>#MD5_CRYPT_ENAB no</userinput></screen>38 to read:39 <screen><userinput>MD5_CRYPT_ENAB yes</userinput></screen>40 Passwords created after this change will be encrypted using41 <acronym>MD</acronym>5 (Message-Digest Algorithm) instead of using42 <acronym>DES</acronym> encryption.43 </para>44 </sect2>45 -->46 24 47 25 <sect2> … … 73 51 <sect3><title>Additional downloads</title> 74 52 <itemizedlist spacing='compact'> 75 <listitem><para>Patch to fix linking against PAM:76 <ulink url="&patch-root;/shadow-&shadow-version;- pam-1.patch"/></para>53 <listitem><para>Patch to fix a bug in the <command>lastlog</command> program: 54 <ulink url="&patch-root;/shadow-&shadow-version;-fix_lastlog-1.patch"/></para> 77 55 </listitem> 78 56 </itemizedlist> … … 81 59 <sect3><title><application>Shadow</application> dependencies</title> 82 60 <sect4><title>Required</title> 83 <para><xref linkend="Linux_PAM"/></para></sect4> 84 </sect3> 61 <para><xref linkend="Linux_PAM"/></para> 62 </sect4> 63 </sect3> 64 85 65 </sect2> 86 66 … … 91 71 commands:</para> 92 72 93 <screen><userinput><command>patch -Np1 -i ../shadow-&shadow-version;- pam-1.patch &&94 LIBS="-lpam -lpam_misc" ./configure --libdir=/usr/lib\95 -- enable-shared --with-libpam --without-libcrack &&96 echo '#define HAVE_SETLOCALE 1' >> config.h&&97 sed -i '/ extern char/d' libmisc/xmalloc.c&&73 <screen><userinput><command>patch -Np1 -i ../shadow-&shadow-version;-fix_lastlog-1.patch && 74 ./configure --libdir=/usr/lib --enable-shared \ 75 --with-libpam --without-libcrack && 76 sed -i 's/groups$(EXEEXT) //' src/Makefile && 77 sed -i '/groups/d' man/Makefile && 98 78 make</command></userinput></screen> 99 79 … … 101 81 102 82 <screen><userinput role='root'><command>make install && 103 mv /bin/sg /usr/bin && 104 mv /bin/vigr /usr/sbin && 105 mv /usr/bin/passwd /bin && 106 rm /bin/groups && 107 mv /usr/lib/lib{misc,shadow}.so.0* /lib && 108 ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so && 109 ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</command></userinput></screen> 83 mv -v /usr/bin/passwd /bin && 84 mv -v /lib/libshadow.*a /usr/lib && 85 rm -v /lib/libshadow.so && 86 ln -v -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</command></userinput></screen> 110 87 111 88 </sect2> … … 120 97 <filename class='libraryfile'>libcrack</filename>.</para> 121 98 122 <para><command>sed -i '/extern char/d' libmisc/xmalloc.c</command>: This 123 fixes a compilation problem when using <application>GCC</application>-3.4.x. 124 </para> 99 <para><command>sed -i ...</command>: These commands are used to suppress the 100 installation of the <command>groups</command> program as the version from the 101 <application>Coreutils</application> package installed during 102 <acronym>LFS</acronym> is preferred.</para> 125 103 126 104 </sect2> … … 131 109 132 110 <sect3 id="pam.d"><title>Config files</title> 133 <para><filename>/etc/pam.d/login</filename>, 134 <filename>/etc/pam.d/passwd</filename>, 135 <filename>/etc/pam.d/su</filename>, 136 <filename>/etc/pam.d/shadow</filename>, 137 <filename>/etc/pam.d/useradd</filename>, and 138 <filename>/etc/pam.d/chage</filename> – 139 alternatively, <filename>/etc/pam.conf</filename></para> 111 <para><filename>/etc/pam.d/*</filename>, or alternatively, 112 <filename>/etc/pam.conf</filename></para> 140 113 <indexterm zone="shadow pam.d"> 141 114 <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary></indexterm> … … 150 123 add them to <filename>/etc/pam.conf</filename> with the additional field for 151 124 the program).</para> 125 126 <sect4><title>login (with <application>cracklib</application>)</title> 152 127 153 128 <screen><userinput><command>cat > /etc/pam.d/login << "EOF"</command> … … 162 137 session required pam_motd.so 163 138 session required pam_limits.so 164 session optional pam_mail.so dir=/var/mail standard139 session optional pam_mail.so dir=/var/mail standard 165 140 session optional pam_lastlog.so 166 141 session required pam_unix.so 142 password required pam_cracklib.so retry=3 difok=8 minlen=5 \ 143 dcredit=3 ocredit=3 \ 144 ucredit=2 lcredit=2 145 password required pam_unix.so md5 shadow use_authtok 167 146 168 147 # End /etc/pam.d/login 169 <command>EOF 170 cat > /etc/pam.d/passwd << "EOF"</command> 148 <command>EOF</command></userinput></screen> 149 </sect4> 150 151 <sect4><title>login (without <application>cracklib</application>)</title> 152 153 <screen><userinput><command>cat > /etc/pam.d/login << "EOF"</command> 154 # Begin /etc/pam.d/login 155 156 auth requisite pam_securetty.so 157 auth requisite pam_nologin.so 158 auth required pam_env.so 159 auth required pam_unix.so 160 account required pam_access.so 161 account required pam_unix.so 162 session required pam_motd.so 163 session required pam_limits.so 164 session optional pam_mail.so dir=/var/mail standard 165 session optional pam_lastlog.so 166 session required pam_unix.so 167 password required pam_unix.so md5 shadow 168 169 # End /etc/pam.d/login 170 <command>EOF</command></userinput></screen> 171 </sect4> 172 173 <sect4><title>passwd (with <application>cracklib</application>)</title> 174 175 <screen><userinput><command>cat > /etc/pam.d/passwd << "EOF"</command> 171 176 # Begin /etc/pam.d/passwd 172 177 173 password required pam_unix.so md5 shadow 178 password required pam_cracklib.so retry=3 difok=8 minlen=5 \ 179 dcredit=3 ocredit=3 \ 180 ucredit=2 lcredit=2 181 password required pam_unix.so md5 shadow use_authtok 174 182 175 183 # End /etc/pam.d/passwd 176 <command>EOF 177 cat > /etc/pam.d/shadow << "EOF"</command> 178 # Begin /etc/pam.d/shadow 184 <command>EOF</command></userinput></screen> 185 </sect4> 186 187 <sect4><title>passwd (without <application>cracklib</application>)</title> 188 189 <screen><userinput><command>cat > /etc/pam.d/passwd << "EOF"</command> 190 # Begin /etc/pam.d/passwd 191 192 password required pam_unix.so md5 shadow 193 194 # End /etc/pam.d/passwd 195 <command>EOF</command></userinput></screen> 196 </sect4> 197 198 <sect4><title>su</title> 199 200 <screen><userinput><command>cat > /etc/pam.d/su << "EOF"</command> 201 # Begin /etc/pam.d/su 202 203 auth sufficient pam_rootok.so 204 auth required pam_unix.so 205 account required pam_unix.so 206 session optional pam_mail.so dir=/var/mail standard 207 session required pam_unix.so 208 209 # End /etc/pam.d/su 210 <command>EOF</command></userinput></screen> 211 </sect4> 212 213 <sect4><title>chage</title> 214 215 <screen><userinput><command>cat > /etc/pam.d/chage << "EOF"</command> 216 # Begin /etc/pam.d/chage 179 217 180 218 auth sufficient pam_rootok.so … … 184 222 password required pam_permit.so 185 223 186 # End /etc/pam.d/shadow187 <command>EOF188 cat > /etc/pam.d/su << "EOF"</command>189 # Begin /etc/pam.d/su190 191 auth sufficient pam_rootok.so192 auth required pam_unix.so193 account required pam_unix.so194 session required pam_unix.so195 196 # End /etc/pam.d/su197 <command>EOF198 cat > /etc/pam.d/useradd << "EOF"</command>199 # Begin /etc/pam.d/useradd200 201 auth sufficient pam_rootok.so202 auth required pam_unix.so203 account required pam_unix.so204 session required pam_unix.so205 password required pam_permit.so206 207 # End /etc/pam.d/useradd208 <command>EOF209 cat > /etc/pam.d/chage << "EOF"</command>210 # Begin /etc/pam.d/chage211 212 auth sufficient pam_rootok.so213 auth required pam_unix.so214 account required pam_unix.so215 session required pam_unix.so216 password required pam_permit.so217 218 224 # End /etc/pam.d/chage 219 225 <command>EOF</command></userinput></screen> 220 221 <note><para>If you've installed <application>cracklib</application>, replace 222 <filename>/etc/pam.d/passwd</filename> with the following:</para></note> 223 <screen><userinput><command>cat > /etc/pam.d/passwd << "EOF"</command> 224 # Begin /etc/pam.d/passwd 225 226 password required pam_cracklib.so \ 227 retry=3 difok=8 minlen=5 dcredit=3 ocredit=3 ucredit=2 lcredit=2 228 password required pam_unix.so md5 shadow use_authtok 229 230 # End /etc/pam.d/passwd 231 <command>EOF</command></userinput></screen> 226 </sect4> 227 228 <sect4><title>chpasswd, newusers, groupadd, groupdel, groupmod, useradd, 229 userdel and usermod</title> 230 231 <screen><userinput><command>for PROGRAM in chpasswd newusers groupadd groupdel \ 232 groupmod useradd userdel usermod 233 do 234 cp /etc/pam.d/chage /etc/pam.d/$PROGRAM 235 sed -i -e "s/chage/$PROGRAM/" /etc/pam.d/$PROGRAM 236 done</command></userinput></screen> 237 </sect4> 238 239 <sect4><title>other</title> 232 240 233 241 <warning><para>At this point, you should do a simple test to see if … … 238 246 receive errors, stop now and double check the above configuration files 239 247 manually. If you cannot find, and fix the error, you should recompile 240 shadow replacing < envar>--with-libpam</envar> with241 < envar>--without-libpam</envar> in the above248 shadow replacing <parameter>--with-libpam</parameter> with 249 <parameter>--without-libpam</parameter> in the above 242 250 instructions. If you fail to do this and the errors remain, you 243 251 will be unable to log into your system.</para></warning> 244 252 245 253 <para>Currently, <filename>/etc/pam.d/other</filename> is configured to 246 allow anyone with an account on the machine to use programs 247 that do not specifically have a configuration file of their own. After 248 testing <application>Linux-<acronym>PAM</acronym></application> for proper 249 configuration, it can be changed to the following:</para> 254 allow anyone with an account on the machine to use 255 <acronym>PAM</acronym>-aware programs without a configuration file for that 256 program. After testing <application>Linux-<acronym>PAM</acronym></application> 257 for proper configuration, install a more restrictive 258 <filename>other</filename> file so that program-specific configuration files 259 are required:</para> 250 260 251 261 <screen><userinput><command>cat > /etc/pam.d/other << "EOF"</command> … … 261 271 # End /etc/pam.d/other 262 272 <command>EOF</command></userinput></screen> 263 264 <para>Finally, edit <filename>/etc/login.defs</filename> by adding '#' 265 to the beginning of the following lines:</para> 266 <screen>LASTLOG_ENAB 267 MAIL_CHECK_ENAB 268 PORTTIME_CHECKS_ENAB 269 CONSOLE 270 MOTD_FILE 271 NOLOGINS_FILE 272 PASS_MIN_LEN 273 SU_WHEEL_ONLY 274 MD5_CRYPT_ENAB 275 CONSOLE_GROUPS 276 ENVIRON_FILE</screen> 277 278 <para>This stops <command>login</command> from performing these functions, as 279 they will now be performed by <acronym>PAM</acronym> modules. Additionally, 280 add a '#' to the beginning of the following lines if you've installed 281 <application>cracklib</application>:</para> 282 <screen>OBSCURE_CHECKS_ENAB 283 CRACKLIB_DICTPATH 284 PASS_CHANGE_TRIES 285 PASS_ALWAYS_WARN</screen> 273 </sect4> 274 275 <sect4 id="pam-access"><title>Configuring login access</title> 276 277 <para>Instead of using the <filename>/etc/login.access</filename> file for 278 controlling access to the system, 279 <application>Linux-<acronym>PAM</acronym></application> uses the 280 <filename class='libraryfile'>pam_access.so</filename> module along with the 281 <filename>/etc/security/access.conf</filename> file. Rename the 282 <filename>/etc/login.access</filename> file using the following 283 command:</para> 284 <indexterm zone="shadow pam-access"><primary 285 sortas="e-etc-security-access.conf">/etc/security/access.conf</primary> 286 </indexterm> 287 288 <screen><userinput><command>if [ -f /etc/login.access ]; then 289 mv -v /etc/login.access /etc/login.access.NOUSE 290 fi</command></userinput></screen> 291 </sect4> 292 293 <sect4 id="pam-limits"><title>Configuring resource limits</title> 294 295 <para>Instead of using the <filename>/etc/limits</filename> file for 296 limiting usage of system resources, 297 <application>Linux-<acronym>PAM</acronym></application> uses the 298 <filename class='libraryfile'>pam_limits.so</filename> module along with the 299 <filename>/etc/security/limits.conf</filename> file. Rename the 300 <filename>/etc/limits</filename> file using the following 301 command:</para> 302 <indexterm zone="shadow pam-limits"><primary 303 sortas="e-etc-security-limits.conf">/etc/security/limits.conf</primary> 304 </indexterm> 305 306 <screen><userinput><command>if [ -f /etc/limits ]; then 307 mv -v /etc/limits /etc/limits.NOUSE 308 fi</command></userinput></screen> 309 </sect4> 310 311 <sect4 id="pam-login-defs"><title>Configuring /etc/login.defs</title> 312 313 <para>The <command>login</command> program currently performs many functions 314 which <application>Linux-<acronym>PAM</acronym></application> modules should 315 now handle. The following command will comment out the appropriate lines in 316 <filename>/etc/login.defs</filename>, and stop <command>login</command> from 317 performing these functions:</para> 318 <indexterm zone="shadow pam-login-defs"><primary 319 sortas="e-etc-login.defs">/etc/login.defs</primary> 320 </indexterm> 321 322 <screen><userinput><command>for FUNCTION in LASTLOG_ENAB MAIL_CHECK_ENAB \ 323 PORTTIME_CHECKS_ENAB CONSOLE \ 324 MOTD_FILE NOLOGINS_FILE PASS_MIN_LEN \ 325 SU_WHEEL_ONLY MD5_CRYPT_ENAB \ 326 CONSOLE_GROUPS ENVIRON_FILE 327 do 328 sed -i -e "s/^$FUNCTION/# &/" /etc/login.defs 329 done</command></userinput></screen> 330 331 <para>If you have <application>cracklib</application> installed, also comment 332 out four more lines using the following command:</para> 333 334 <screen><userinput><command>for FUNCTION in OBSCURE_CHECKS_ENAB CRACKLIB_DICTPATH \ 335 PASS_CHANGE_TRIES PASS_ALWAYS_WARN 336 do 337 sed -i -e "s/^$FUNCTION/# &/" /etc/login.defs 338 done</command></userinput></screen> 339 </sect4> 340 286 341 </sect3> 287 342
Note:
See TracChangeset
for help on using the changeset viewer.