Changeset d719b5f


Ignore:
Timestamp:
05/10/2021 06:27:52 PM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/usr-move
Parents:
2fcfa27
Message:

shadow: get rid of /bin and /sbin from $PATH

This will be the default system-wide setting of LFS. However, it will
be free to reset $PATH in .bashrc, so we can't assume everyone will use
this. We still need to find and fix breakages caused by hardcoded
paths to /bin/some_executable in BLFS packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/shadow.xml

    r2fcfa27 rd719b5f  
    6666    the obsolete <filename class="directory">/var/spool/mail</filename> location
    6767    for user mailboxes that Shadow uses by default to the <filename
    68     class="directory">/var/mail</filename> location used currently:</para>
     68    class="directory">/var/mail</filename> location used currently. And,
     69    get rid of <filename class="directory">/bin</filename> and
     70    <filename class="directory">/sbin</filename> from <envar>PATH</envar>,
     71    since they are simply symlinks to their counterpart in
     72    <filename class="directory">/usr</filename>.</para>
     73
     74    <note>
     75      <para>If <filename class="directory">/bin</filename> and/or
     76      <filename class="directory">/sbin</filename> are prefereed to be
     77      left over in <envar>PATH</envar> for some reason, modify
     78      <envar>PATH</envar> in <filename>.bashrc</filename> after LFS is
     79      built.</para>
     80    </note>
    6981
    7082<screen><userinput remap="pre">sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
    7183    -e 's:/var/spool/mail:/var/mail:'                 \
     84    -e '/PATH=/{s@/sbin:@@;s@/bin:@@}'                \
    7285    -i etc/login.defs</userinput></screen>
    7386
Note: See TracChangeset for help on using the changeset viewer.