Changeset 5861bcf
- Timestamp:
- May 19, 2017, 5:39:11 PM (8 years ago)
- Branches:
- master, systemd
- Children:
- 79438a6
- Parents:
- 6d6e80e
- Location:
- BOOK/final-system
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/shadow.xml
r6d6e80e r5861bcf 54 54 --sysconfdir=/etc</userinput></screen> 55 55 56 <para os="f">The meaning of the new configure option:</para>57 58 <variablelist os="g"> 56 <variablelist os="f"> 57 <title>The meaning of the new configure option:</title> 58 59 59 <varlistentry> 60 60 <term><parameter>--sysconfdir=/etc</parameter></term> … … 66 66 </variablelist> 67 67 68 <para os=" h">Compile the package:</para>69 70 <screen os=" i"><userinput>make</userinput></screen>71 72 <para os=" j">This package does not come with a test suite.</para>73 74 <para os=" k">Install the package:</para>75 76 <screen os=" l"><userinput>make install</userinput></screen>77 78 <para os=" m" id="shadow-login_defs">Instead of using the default68 <para os="g">Compile the package:</para> 69 70 <screen os="h"><userinput>make</userinput></screen> 71 72 <para os="i">This package does not come with a test suite.</para> 73 74 <para os="j">Install the package:</para> 75 76 <screen os="k"><userinput>make install</userinput></screen> 77 78 <para os="l" id="shadow-login_defs">Instead of using the default 79 79 <emphasis>DES</emphasis> method, use the more secure 80 80 <emphasis>SHA512</emphasis> method of password encryption, which also allows … … 86 86 configuration file:</para> 87 87 88 <indexterm os=" n" zone="shadow-login_defs">88 <indexterm os="m" zone="shadow-login_defs"> 89 89 <primary sortas="e-/etc/login.defs">/etc/login.defs</primary> 90 90 </indexterm> 91 91 92 <screen os=" s"><userinput>sed -i /etc/login.defs \92 <screen os="n"><userinput>sed -i /etc/login.defs \ 93 93 -e 's@#\(ENCRYPT_METHOD \).*@\1SHA512@' \ 94 94 -e 's@/var/spool/mail@/var/mail@'</userinput></screen> 95 95 96 <para os=" t">Move a misplaced program to its proper location:</para>97 98 <screen os=" u"><userinput>mv -v /usr/bin/passwd /bin</userinput></screen>99 100 <para os=" v">The <command>login</command> program will write to96 <para os="o">Move a misplaced program to its proper location:</para> 97 98 <screen os="p"><userinput>mv -v /usr/bin/passwd /bin</userinput></screen> 99 100 <para os="q">The <command>login</command> program will write to 101 101 <filename>/var/log/faillog</filename>, to record failed login attempts, and 102 102 <filename>/var/log/lastlog</filename>, to record the date and … … 105 105 create them now and give them appropriate ownership and permissions:</para> 106 106 107 <screen os=" w"><userinput>touch /var/log/{fail,last}log107 <screen os="r"><userinput>touch /var/log/{fail,last}log 108 108 chgrp -v utmp /var/log/{fail,last}log 109 109 chmod -v 664 /var/log/{fail,last}log</userinput></screen> -
BOOK/final-system/multilib/shadow.xml
r6d6e80e r5861bcf 79 79 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 80 80 href="../common/shadow.xml" 81 xpointer="xpointer(//*[@os=' s'])"/>81 xpointer="xpointer(//*[@os='o'])"/> 82 82 83 83 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 84 84 href="../common/shadow.xml" 85 xpointer="xpointer(//*[@os=' t'])"/>85 xpointer="xpointer(//*[@os='p'])"/> 86 86 87 87 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 88 88 href="../common/shadow.xml" 89 xpointer="xpointer(//*[@os=' u'])"/>89 xpointer="xpointer(//*[@os='q'])"/> 90 90 91 91 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 92 92 href="../common/shadow.xml" 93 xpointer="xpointer(//*[@os='v'])"/> 94 95 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 96 href="../common/shadow.xml" 97 xpointer="xpointer(//*[@os='w'])"/> 93 xpointer="xpointer(//*[@os='r'])"/> 98 94 99 95 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.