Changeset 9d5637f5 for BOOK


Ignore:
Timestamp:
Aug 2, 2014, 1:28:15 AM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, master, systemd
Children:
8517eb19
Parents:
59a3524
Message:

Consolidated cracklib notes

Location:
BOOK/final-system
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/shadow.xml

    r59a3524 r9d5637f5  
    2929      <para>If you would like to enforce the use of strong passwords,
    3030      refer to <ulink url="&cblfs-root;index.php/Cracklib"/>
    31       for installing Cracklib prior to building Shadow. Then add
    32       <parameter>--with-libcrack</parameter> to the <command>configure</command>
    33       command below.</para>
     31      for installing Cracklib prior to building Shadow. After Cracklib is
     32      installed, execute this <command>sed</command> in Shadow's source
     33      directory to correct the path to the Cracklib dictionary:</para>
     34
     35<screen role="nodump"><userinput>sed -i 's@\(DICTPATH.\).*@\1/lib/cracklib/pw_dict@' etc/login.defs</userinput></screen>
     36
     37      <para>Finally, add <parameter>--with-libcrack</parameter> to the
     38      <command>configure</command> command below.</para>
     39
    3440    </note>
    3541
     
    8793    -e 's@/var/spool/mail@/var/mail@'</userinput></screen>
    8894
    89     <note os="t">
    90       <para>If you built Shadow with Cracklib support, execute
    91       this <command>sed</command> to correct the path to the Cracklib
    92       dictionary:</para>
    93 
    94 <screen role="nodump"><userinput>sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' /etc/login.defs</userinput></screen>
    95     </note>
    96 
    97     <para os="u">Move a misplaced program to its proper location:</para>
    98 
    99 <screen os="v"><userinput>mv -v /usr/bin/passwd /bin</userinput></screen>
    100 
    101     <para os="w">The <command>login</command> program will write to
     95    <para os="t">Move a misplaced program to its proper location:</para>
     96
     97<screen os="u"><userinput>mv -v /usr/bin/passwd /bin</userinput></screen>
     98
     99    <para os="v">The <command>login</command> program will write to
    102100    <filename>/var/log/lastlog</filename>, if it exists, to record the date and
    103101    time of the latest successful login for each user. This log file is not
     
    105103    create it now and give it appropriate ownership and permissions:</para>
    106104
    107 <screen os="x"><userinput>touch /var/log/lastlog
     105<screen os="w"><userinput>touch /var/log/lastlog
    108106chgrp -v utmp /var/log/lastlog
    109107chmod -v 664 /var/log/lastlog</userinput></screen>
  • BOOK/final-system/multilib/shadow.xml

    r59a3524 r9d5637f5  
    9696    xpointer="xpointer(//*[@os='w'])"/>
    9797
    98     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    99     href="../common/shadow.xml"
    100     xpointer="xpointer(//*[@os='x'])"/>
    101 
    10298  </sect2>
    10399
Note: See TracChangeset for help on using the changeset viewer.