📄 shadow.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 10.59. Shadow-4.0.15 32 Bit Libraries </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-x86_64-Multilib"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Multilib </h4> <h3> Chapter 10. Installing Basic System Software </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="psmisc.html" title="Psmisc-22.2">Prev</a> <p> Psmisc-22.2 </p> </li> <li class="next"> <a accesskey="n" href="shadow-64bit.html" title= "Shadow-4.0.15 64 Bit">Next</a> <p> Shadow-4.0.15 64 Bit </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Multilib"> Home</a> </li> </ul> </div> <div class="wrap" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 10.59. Shadow-4.0.15 32 Bit Libraries </h1> </div> <div class="package" lang="en" xml:lang="en"> <p> The Shadow package contains programs for handling passwords in a secure way. </p> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installation depends on:</span></strong> <span class="seg">Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, and Sed</span> </div> </div> </div> </div> <div class="installation" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 10.59.1. Installation of Shadow </h2> </div> <div class="note"> <div class="admonhead"> <img alt="[Note]" src="../images/note.png" /> <h3 class="admontitle"> Note </h3> </div> <div class="admonbody"> <p> If you would like to enforce the use of strong passwords, refer to <a href= "http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cracklib.html"> <i>http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cracklib.html</i></a> for installing Cracklib prior to building Shadow. Then add <em class="parameter"><tt>--with-libcrack</tt></em> to the <span><strong class="command">configure</strong></span> command below. </p> </div> </div> <p> Prepare Shadow for compilation: </p> <pre class="userinput"><kbd class="command">CC="gcc ${BUILD32}" ./configure --libdir=/lib \ --enable-shared --without-libpam --without-audit --without-selinux</kbd></pre> <p> The meaning of the configure options: </p> <div class="variablelist"> <dl> <dt> <span class="term"><em class= "parameter"><tt>--without-libpam</tt></em></span> </dt> <dd> <p> Support for Linux-PAM is enabled by default in Shadow, however PAM is not installed on a base LFS system, so this switch disables PAM support in Shadow. For instructions to install PAM and link Shadow to it, you can look at <a href= "http://www.linuxfromscratch.org/blfs/view/svn/postlfs/shadow.html"> <i>http://www.linuxfromscratch.org/blfs/view/svn/postlfs/shadow.html</i></a>. </p> </dd> <dt> <span class="term"><em class= "parameter"><tt>--without-audit</tt></em></span> </dt> <dd> <p> Support for auditing is enabled by default, but a a library that it needs is not installed in a base LFS system. This switch disables auditing support. </p> </dd> <dt> <span class="term"><em class= "parameter"><tt>--without-selinux</tt></em></span> </dt> <dd> <p> Support for selinux is enabled by default, but selinux is not built in a base LFS system and configure will fail without this switch. </p> </dd> </dl> </div> <p> Disable the installation of the <span><strong class= "command">groups</strong></span> program and its man pages, as Coreutils provides a better version: </p> <pre class="userinput"><kbd class="command">sed -i 's/groups$(EXEEXT) //' src/Makefilesed -i '/groups/d' man/Makefile</kbd></pre> <p> Compile the package: </p> <pre class="userinput"><kbd class="command">make</kbd></pre> <p> This package does not come with a test suite. </p> <p> Install the package: </p> <pre class="userinput"><kbd class="command">make install</kbd></pre> <p> Move a misplaced program to its proper location: </p> <pre class="userinput"><kbd class="command">mv -v /usr/bin/passwd /bin</kbd></pre> <p> Move Shadow's dynamic libraries to a more appropriate location: </p> <pre class="userinput"><kbd class="command">mv -v /lib/libshadow.*a /usr/librm -v /lib/libshadow.soln -svf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <p> Details on this package are located in <a href= "shadow-64bit.html#contents-shadow" title= "10.60.4. Contents of Shadow">Section 10.60.4, “Contents of Shadow.”</a> </p> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="psmisc.html" title="Psmisc-22.2">Prev</a> <p> Psmisc-22.2 </p> </li> <li class="next"> <a accesskey="n" href="shadow-64bit.html" title= "Shadow-4.0.15 64 Bit">Next</a> <p> Shadow-4.0.15 64 Bit </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Multilib"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -