diff options
author | Douglas R. Reno <renodr@linuxfromscratch.org> | 2021-05-11 23:24:11 -0500 |
---|---|---|
committer | Douglas R. Reno <renodr@linuxfromscratch.org> | 2021-05-11 23:24:11 -0500 |
commit | d7a942197e713339d4dc1eedab4dafd4179a5cd8 (patch) | |
tree | 48aba90323070adb9a54e83ce1ebed902d0b19c3 /chapter08/shadow.xml | |
parent | 0f7d4cb8a734227ea85f46c5b934ed1b85a51b3c (diff) |
Merge Xi's changes into trunk
Update to meson-0.58.0
Update to systemd-248
Update to gcc-11.1.0
Update to linux-5.12.1
Update to iproute2-5.12.0
Update to Python-3.9.5
Make /bin, /sbin, and /lib symlinks to their counterparts in /usr.
Thanks again for a significant portion of this work goes to Xi, I only
really merged it and made a couple of modifications for my updates. To
LFS 11.x we go!
Diffstat (limited to 'chapter08/shadow.xml')
-rw-r--r-- | chapter08/shadow.xml | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/chapter08/shadow.xml b/chapter08/shadow.xml index 3ccbfbb58..3471b347b 100644 --- a/chapter08/shadow.xml +++ b/chapter08/shadow.xml @@ -65,10 +65,23 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;</userinput></s allows passwords longer than 8 characters. It is also necessary to change the obsolete <filename class="directory">/var/spool/mail</filename> location for user mailboxes that Shadow uses by default to the <filename - class="directory">/var/mail</filename> location used currently:</para> + class="directory">/var/mail</filename> location used currently. And, + get rid of <filename class="directory">/bin</filename> and + <filename class="directory">/sbin</filename> from <envar>PATH</envar>, + since they are simply symlinks to their counterpart in + <filename class="directory">/usr</filename>.</para> + + <note> + <para>If <filename class="directory">/bin</filename> and/or + <filename class="directory">/sbin</filename> are prefereed to be + left over in <envar>PATH</envar> for some reason, modify + <envar>PATH</envar> in <filename>.bashrc</filename> after LFS is + built.</para> + </note> <screen><userinput remap="pre">sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \ -e 's:/var/spool/mail:/var/mail:' \ + -e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ -i etc/login.defs</userinput></screen> <note> @@ -118,17 +131,6 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;</userinput></s <para>Install the package:</para> <screen><userinput remap="install">make install</userinput></screen> - <!-- - <para>Move a misplaced program to its proper location:</para> - -<screen><userinput remap="install">mv -v /usr/bin/passwd /bin</userinput></screen> - --> - - <!-- <para>Move Shadow's libraries to more appropriate locations:</para> - -<screen><userinput remap="install">mv -v /lib/libshadow.*a /usr/lib -rm -v /lib/libshadow.so -ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen> --> </sect2> |