Ignore:
File:
1 edited

Legend:

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

    r0a6ea84 r4c51b38  
    3434    </note>
    3535
    36 
    37     <para os="b">Disable the installation of the <command>groups</command> and
    38     <command>nologin</command> programs and their man pages, as better versions
    39     of these programs are provided by Coreutils and Util-linux:</para>
    40 
    41 <screen os="c"><userinput>sed -i src/Makefile.in \
    42   -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /'
    43 find man -name Makefile.in -exec sed -i \
    44   -e 's/man1\/groups\.1 //' -e 's/man8\/nologin\.8 //' '{}' \;</userinput></screen>
    45 
    46     <para os="d">Prepare Shadow for compilation:</para>
    47 
    48 <screen os="e"><userinput>./configure --sysconfdir=/etc</userinput></screen>
    49 
    50 <para os="f">The meaning of the configure options:</para>
    51 
    52   <variablelist os="g">
     36    <para os="f1">Fix an issue with the Russian man pages:</para>
     37
     38    <screen os="f2"><userinput>sed -i 's/man_MANS = $(man_nopam) /man_MANS = /' man/ru/Makefile.in</userinput></screen>
     39
     40    <para os="b">Prepare Shadow for compilation:</para>
     41
     42<screen os="c"><userinput>./configure --sysconfdir=/etc</userinput></screen>
     43
     44<para os="d">The meaning of the configure options:</para>
     45
     46  <variablelist os="e">
    5347    <varlistentry>
    5448      <term><parameter>--sysconfdir=/etc</parameter></term>
     
    5751      <filename class="directory">/usr/etc</filename>.</para></listitem>
    5852    </varlistentry>
    59    
    6053  </variablelist>
    6154
     55    <para os="f">Disable the installation of the <command>groups</command>
     56    program and its man pages, as Coreutils provides a better version:</para>
     57
     58<screen os="g"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
     59find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \;
     60find man -name Makefile -exec sed -i 's/groups.1 //' '{}' \;</userinput></screen>
    6261
    6362    <para os="h">Compile the package:</para>
     
    7372    <para os="m" id="shadow-login_defs">Instead of using the default
    7473    <emphasis>crypt</emphasis> method, use the more secure
    75     <emphasis>SHA512</emphasis> method of password encryption, which also allows
     74    <emphasis>MD5</emphasis> method of password encryption, which also allows
    7675    passwords longer than 8 characters. It is also necessary to change the
    7776    obsolete <filename class="directory">/var/spool/mail</filename> location
     
    8685
    8786<screen os="s"><userinput>sed -i /etc/login.defs \
    88     -e 's@#\(ENCRYPT_METHOD \).*@\1SHA512@' \
     87    -e 's@#\(ENCRYPT_METHOD \).*@\1MD5@' \
    8988    -e 's@/var/spool/mail@/var/mail@'</userinput></screen>
    9089
     
    156155        <seg>chage, chfn, chpasswd, chgpasswd, chsh, expiry, faillog, gpasswd,
    157156        groupadd, groupdel, groupmems, groupmod, grpck, grpconv, grpunconv,
    158         lastlog, login, logoutd, newgrp, newusers, passwd, pwck,
     157        lastlog, login, logoutd, newgrp, newusers, nologin, passwd, pwck,
    159158        pwconv, pwunconv, sg (link to newgrp), su, useradd, userdel, usermod,
    160159        vigr (link to vipw), and vipw</seg>
     
    381380      </varlistentry>
    382381
     382      <varlistentry id="nologin">
     383        <term><command>nologin</command></term>
     384        <listitem>
     385          <para>Displays a message that an account is not available. Designed
     386          to be used as the default shell for accounts that have been
     387          disabled</para>
     388          <indexterm zone="ch-system-shadow nologin">
     389            <primary sortas="b-nologin">nologin</primary>
     390          </indexterm>
     391        </listitem>
     392      </varlistentry>
     393
    383394      <varlistentry id="passwd">
    384395        <term><command>passwd</command></term>
Note: See TracChangeset for help on using the changeset viewer.