Ignore:
Timestamp:
Nov 23, 2013, 1:07:03 AM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
358ffc2
Parents:
cd44021
Message:

use nologin from util-linux instead of shadow

File:
1 edited

Legend:

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

    rcd44021 r0a6ea84  
    3535
    3636
    37     <para os="b">Disable the installation of the <command>groups</command>
    38     program and its man pages, as Coreutils provides a better version:</para>
    39 
    40 <screen os="c"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile.in
    41 find man -name Makefile.in -exec sed -i '/groups\.1\.xml/d' '{}' \;
    42 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;</userinput></screen>
     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)/= /'
     43find man -name Makefile.in -exec sed -i \
     44  -e 's/man1\/groups\.1 //' -e 's/man8\/nologin\.8 //' '{}' \;</userinput></screen>
    4345
    4446    <para os="d">Prepare Shadow for compilation:</para>
     
    154156        <seg>chage, chfn, chpasswd, chgpasswd, chsh, expiry, faillog, gpasswd,
    155157        groupadd, groupdel, groupmems, groupmod, grpck, grpconv, grpunconv,
    156         lastlog, login, logoutd, newgrp, newusers, nologin, passwd, pwck,
     158        lastlog, login, logoutd, newgrp, newusers, passwd, pwck,
    157159        pwconv, pwunconv, sg (link to newgrp), su, useradd, userdel, usermod,
    158160        vigr (link to vipw), and vipw</seg>
     
    379381      </varlistentry>
    380382
    381       <varlistentry id="nologin">
    382         <term><command>nologin</command></term>
    383         <listitem>
    384           <para>Displays a message that an account is not available. Designed
    385           to be used as the default shell for accounts that have been
    386           disabled</para>
    387           <indexterm zone="ch-system-shadow nologin">
    388             <primary sortas="b-nologin">nologin</primary>
    389           </indexterm>
    390         </listitem>
    391       </varlistentry>
    392 
    393383      <varlistentry id="passwd">
    394384        <term><command>passwd</command></term>
Note: See TracChangeset for help on using the changeset viewer.