- Timestamp:
- Feb 21, 2006, 2:13:50 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 521c55b
- Parents:
- ed25565
- Location:
- BOOK
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/shadow.xml
red25565 r7447a2c 43 43 </note> 44 44 45 <para os="p1">Shadow has selinux, pam, and auditing defaulted to on. The46 following patch properly fixes this issue:</para>47 48 <screen os="p2"><userinput>patch -Np1 -i ../&shadow-configure_fix-patch;</userinput></screen>49 50 45 <para os="b">Prepare Shadow for compilation:</para> 51 46 52 <screen os="c"><userinput>./configure --libdir=/lib --enable-shared</userinput></screen> 53 54 <para os="d">Disable the installation of the <command>groups</command> 47 <screen os="c"><userinput>./configure --libdir=/lib --enable-shared \ 48 --without-libpam --without-audit --without-selinux</userinput></screen> 49 50 <para os="d">The meaning of the configure options:</para> 51 52 <variablelist os="e"> 53 <varlistentry> 54 <term><parameter>--without-libpam</parameter></term> 55 <listitem><para>Support for Linux-PAM is enabled by default in Shadow, 56 however PAM is not installed on a base LFS system, so this switch 57 disables PAM support in Shadow. For instructions to install PAM and 58 link Shadow to it, you can look at 59 <ulink url="&blfs-root;view/svn/postlfs/shadow.html"/>.</para></listitem> 60 </varlistentry> 61 <varlistentry> 62 <term><parameter>--without-audit</parameter></term> 63 <listitem><para>Support for auditing is enabled by default, but a 64 a library that it needs is not installed in a base LFS system. This 65 switch disables auditing support.</para></listitem> 66 </varlistentry> 67 <varlistentry> 68 <term><parameter>--without-selinux</parameter></term> 69 <listitem><para>Support for selinux is enabled by default, but selinux 70 is not built in a base LFS system and configure will fail without this 71 switch.</para></listitem> 72 </varlistentry> 73 </variablelist> 74 75 <para os="f">Disable the installation of the <command>groups</command> 55 76 program and its man page, as Coreutils provides a better version:</para> 56 77 57 <screen os=" e"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile78 <screen os="g"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile 58 79 sed -i '/groups/d' man/Makefile</userinput></screen> 59 80 60 <para os=" f">Compile the package:</para>61 62 <screen os=" g"><userinput>make</userinput></screen>63 64 <para os=" h">Install the package:</para>65 66 <screen os=" i"><userinput>make install</userinput></screen>67 68 <para id="shadow-limits-login_access" os=" j">Shadow uses two files to configure81 <para os="h">Compile the package:</para> 82 83 <screen os="i"><userinput>make</userinput></screen> 84 85 <para os="j">Install the package:</para> 86 87 <screen os="k"><userinput>make install</userinput></screen> 88 89 <para id="shadow-limits-login_access" os="l">Shadow uses two files to configure 69 90 authentication settings for the system. Install these two configuration 70 91 files:</para> 71 92 72 <indexterm zone="shadow-limits-login_access" os=" k">93 <indexterm zone="shadow-limits-login_access" os="m"> 73 94 <primary sortas="e-/etc/limits">/etc/limits</primary> 74 95 </indexterm> 75 96 76 <indexterm zone="shadow-limits-login_access" os=" l">97 <indexterm zone="shadow-limits-login_access" os="n"> 77 98 <primary sortas="e-/etc/login.access">/etc/login.access</primary> 78 99 </indexterm> 79 100 80 <screen os=" m"><userinput>cp etc/{limits,login.access} /etc</userinput></screen>81 82 <para id="shadow-login_defs" os=" n">Instead of using the default101 <screen os="o"><userinput>cp etc/{limits,login.access} /etc</userinput></screen> 102 103 <para id="shadow-login_defs" os="p">Instead of using the default 83 104 <emphasis>crypt</emphasis> method, use the more secure 84 105 <emphasis>MD5</emphasis> method of password encryption, which also allows … … 90 111 while copying it to its destination:</para> 91 112 92 <indexterm zone="shadow-login_defs" os=" o">113 <indexterm zone="shadow-login_defs" os="q"> 93 114 <primary sortas="e-/etc/login.defs">/etc/login.defs</primary> 94 115 </indexterm> 95 116 96 <note os=" p">117 <note os="r"> 97 118 <para>If you built Shadow with Cracklib support, insert the following into 98 119 the <command>sed</command> given below:</para> … … 101 122 </note> 102 123 103 <screen os=" q"><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \124 <screen os="s"><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \ 104 125 -e 's@/var/spool/mail@/var/mail@' \ 105 126 etc/login.defs > /etc/login.defs</userinput></screen> 106 127 107 <para os=" r">Move a misplaced program to its proper location:</para>108 109 <screen os=" s"><userinput>mv /usr/bin/passwd /bin</userinput></screen>110 111 <para os=" t">Move Shadow's dynamic libraries to a more appropriate128 <para os="t">Move a misplaced program to its proper location:</para> 129 130 <screen os="u"><userinput>mv /usr/bin/passwd /bin</userinput></screen> 131 132 <para os="v">Move Shadow's dynamic libraries to a more appropriate 112 133 location:</para> 113 134 114 <screen os=" u"><userinput>mv /lib/libshadow.*a /usr/lib135 <screen os="w"><userinput>mv /lib/libshadow.*a /usr/lib 115 136 rm /lib/libshadow.so 116 137 ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen> 117 138 118 <para os=" v">The <option>-D</option> option of the <command>useradd</command>139 <para os="x">The <option>-D</option> option of the <command>useradd</command> 119 140 program requires the <filename class="directory">/etc/default</filename> 120 141 directory for it to work properly:</para> 121 142 122 <screen os=" w"><userinput>install -d /etc/default</userinput></screen>143 <screen os="y"><userinput>install -d /etc/default</userinput></screen> 123 144 124 145 </sect2> -
BOOK/final-system/multilib/shadow-64bit.xml
red25565 r7447a2c 39 39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 40 40 href="shadow.xml" 41 xpointer="xpointer(//*[@os='p1'])"/>42 43 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"44 href="shadow.xml"45 xpointer="xpointer(//*[@os='p2'])"/>46 47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"48 href="shadow.xml"49 41 xpointer="xpointer(//*[@os='b'])"/> 50 42 51 43 <screen os="c"><userinput>CC="gcc ${BUILD64}" ./configure --libdir=/lib64 \ 52 --enable-shared </userinput></screen>44 --enable-shared --without-libpam --without-audit --without-selinux</userinput></screen> 53 45 54 46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 77 69 78 70 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 79 href=" ../common/shadow.xml"71 href="shadow.xml" 80 72 xpointer="xpointer(//*[@os='j'])"/> 81 73 82 74 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 83 href=" ../common/shadow.xml"75 href="shadow.xml" 84 76 xpointer="xpointer(//*[@os='k'])"/> 85 77 … … 109 101 110 102 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 111 href=" shadow.xml"103 href="../common/shadow.xml" 112 104 xpointer="xpointer(//*[@os='r'])"/> 113 105 114 106 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 115 href=" shadow.xml"107 href="../common/shadow.xml" 116 108 xpointer="xpointer(//*[@os='s'])"/> 117 109 … … 119 111 href="shadow.xml" 120 112 xpointer="xpointer(//*[@os='t'])"/> 113 114 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 115 href="shadow.xml" 116 xpointer="xpointer(//*[@os='u'])"/> 117 118 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 119 href="shadow.xml" 120 xpointer="xpointer(//*[@os='v'])"/> 121 121 122 122 <screen os="u"><userinput>mv /lib64/libshadow.*a /usr/lib64 … … 126 126 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 127 127 href="../common/shadow.xml" 128 xpointer="xpointer(//*[@os=' v'])"/>128 xpointer="xpointer(//*[@os='x'])"/> 129 129 130 130 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 131 131 href="../common/shadow.xml" 132 xpointer="xpointer(//*[@os=' w'])"/>132 xpointer="xpointer(//*[@os='y'])"/> 133 133 134 134 </sect2> -
BOOK/final-system/multilib/shadow-n32.xml
red25565 r7447a2c 40 40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 41 41 href="shadow.xml" 42 xpointer="xpointer(//*[@os='p1'])"/>43 44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"45 href="shadow.xml"46 xpointer="xpointer(//*[@os='p2'])"/>47 48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"49 href="shadow.xml"50 42 xpointer="xpointer(//*[@os='b'])"/> 51 43 52 44 <screen os="c"><userinput>CC="gcc ${BUILDN32}" ./configure --libdir=/lib32 \ 53 --enable-shared </userinput></screen>45 --enable-shared --without-libpam --without-audit --without-selinux</userinput></screen> 54 46 55 47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 79 71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 80 72 href="shadow.xml" 81 xpointer="xpointer(//*[@os=' r'])"/>73 xpointer="xpointer(//*[@os='j'])"/> 82 74 83 75 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 84 76 href="shadow.xml" 85 xpointer="xpointer(//*[@os=' s'])"/>77 xpointer="xpointer(//*[@os='k'])"/> 86 78 87 79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 89 81 xpointer="xpointer(//*[@os='t'])"/> 90 82 91 <screen os="u"><userinput>mv /lib32/libshadow.*a /usr/lib32 83 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 84 href="shadow.xml" 85 xpointer="xpointer(//*[@os='u'])"/> 86 87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 88 href="shadow.xml" 89 xpointer="xpointer(//*[@os='v'])"/> 90 91 <screen os="w"><userinput>mv /lib32/libshadow.*a /usr/lib32 92 92 rm /lib32/libshadow.so 93 93 ln -sf ../../lib32/libshadow.so.0 /usr/lib32/libshadow.so</userinput></screen> -
BOOK/final-system/multilib/shadow.xml
red25565 r7447a2c 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 30 href="../common/shadow.xml" 31 xpointer="xpointer(//*[@os='p1'])"/>32 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"34 href="../common/shadow.xml"35 xpointer="xpointer(//*[@os='p2'])"/>36 37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"38 href="../common/shadow.xml"39 31 xpointer="xpointer(//*[@os='b'])"/> 40 32 41 33 <screen os="c"><userinput>CC="gcc ${BUILD32}" ./configure --libdir=/lib \ 42 --enable-shared </userinput></screen>34 --enable-shared --without-libpam --without-audit --without-selinux</userinput></screen> 43 35 44 36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 68 60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 69 61 href="../common/shadow.xml" 70 xpointer="xpointer(//*[@os=' r'])"/>62 xpointer="xpointer(//*[@os='j'])"/> 71 63 72 64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 73 65 href="../common/shadow.xml" 74 xpointer="xpointer(//*[@os=' s'])"/>66 xpointer="xpointer(//*[@os='k'])"/> 75 67 76 68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 81 73 href="../common/shadow.xml" 82 74 xpointer="xpointer(//*[@os='u'])"/> 75 76 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 77 href="../common/shadow.xml" 78 xpointer="xpointer(//*[@os='v'])"/> 79 80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 81 href="../common/shadow.xml" 82 xpointer="xpointer(//*[@os='w'])"/> 83 83 84 84 </sect2> -
BOOK/general.ent
red25565 r7447a2c 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 3 <!ENTITY version "CLFS-SVN-2006011 5">3 <!ENTITY version "CLFS-SVN-20060119"> 4 4 <!ENTITY version-x86 "&version;-x86"> 5 5 <!ENTITY version-x86_64 "&version;-x86_64-Multilib"> … … 15 15 <!ENTITY version-alpha "&version;-ALPHA"> 16 16 17 <!ENTITY releasedate "January 1 5, 2006">17 <!ENTITY releasedate "January 19, 2006"> 18 18 <!ENTITY milestone "0.1"> 19 19 <!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" --> -
BOOK/introduction/common/changelog.xml
red25565 r7447a2c 38 38 39 39 <listitem> 40 <para>January 19, 2006</para> 41 <itemizedlist> 42 <listitem> 43 <para>[Chris] - Removed patch from shadow instructions.</para> 44 </listitem> 45 </itemizedlist> 46 </listitem> 47 48 <listitem> 40 49 <para>January 13, 2006</para> 41 50 <itemizedlist> -
BOOK/materials/common/patches.xml
red25565 r7447a2c 171 171 </varlistentry> 172 172 173 <varlistentry os="p21">174 <term>Shadow Configure Fixes Patch - 3.0 KB:</term>175 <listitem>176 <para><ulink177 url="&patches-root;shadow/&shadow-configure_fix-patch;"/></para>178 </listitem>179 </varlistentry>180 181 173 <varlistentry os="p22"> 182 174 <term>Sysklogd Fixes Patch - 28 KB:</term>
Note:
See TracChangeset
for help on using the changeset viewer.