Ignore:
Timestamp:
Nov 23, 2013, 1:07:03 AM (11 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

Location:
BOOK/final-system/common
Files:
2 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>
  • BOOK/final-system/common/util-linux.xml

    rcd44021 r0a6ea84  
    109109        to last), ldattach, logger, look, losetup, lsblk, lscpu, lslocks,
    110110        mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more,
    111         mount, mountpoint,  namei, partx, pg, pivot_root, prlimit, raw,
    112         readprofile, rename, renice, resizepart, rev, rtcwake, script,
     111        mount, mountpoint,  namei, nologin, partx, pg, pivot_root, prlimit,
     112        raw, readprofile, rename, renice, resizepart, rev, rtcwake, script,
    113113        scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel,
    114114        swapoff (link to swapon), swapon, switch_root, tailf, taskset, tunelp,
     
    728728      </varlistentry>
    729729
     730      <varlistentry id="nologin">
     731        <term><command>nologin</command></term>
     732        <listitem>
     733          <para>Displays a message that an account is not available. Designed
     734          to be used as the default shell for accounts that have been
     735          disabled</para>
     736          <indexterm zone="ch-system-util-linux nologin">
     737            <primary sortas="b-nologin">nologin</primary>
     738          </indexterm>
     739        </listitem>
     740      </varlistentry>
     741
    730742      <varlistentry id="partx">
    731743        <term><command>partx</command></term>
Note: See TracChangeset for help on using the changeset viewer.