Changeset 2b15ca5


Ignore:
Timestamp:
May 25, 2014, 4:35:30 AM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-sysvinit, sysvinit
Children:
1cfa56e
Parents:
af2b8f8
Message:

Added log file creation

Location:
BOOK
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/pwdgroup.xml

    raf2b8f8 r2b15ca5  
    99  <?dbhtml filename="pwdgroup.html"?>
    1010
    11   <title>Creating the passwd and group Files</title>
     11  <title>Creating the passwd, group, and log Files</title>
    1212
    1313  <indexterm zone="ch-boot-pwdgroup">
     
    1818  <indexterm zone="ch-boot-pwdgroup">
    1919    <primary sortas="e-/etc/group">/etc/group</primary>
     20    <secondary>boot</secondary>
     21  </indexterm>
     22
     23  <indexterm zone="ch-boot-pwdgroup">
     24    <primary sortas="e-/var/run/utmp">/var/run/utmp</primary>
     25    <secondary>boot</secondary>
     26  </indexterm>
     27
     28  <indexterm zone="ch-boot-pwdgroup">
     29    <primary sortas="e-/var/log/btmp">/var/log/btmp</primary>
     30    <secondary>boot</secondary>
     31  </indexterm>
     32
     33  <indexterm zone="ch-boot-pwdgroup">
     34    <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary>
     35    <secondary>boot</secondary>
     36  </indexterm>
     37
     38  <indexterm zone="ch-boot-pwdgroup">
     39    <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
    2040    <secondary>boot</secondary>
    2141  </indexterm>
     
    167187  group's name.</para>
    168188
     189  <para os="f">The <command>login</command>, <command>agetty</command>, and
     190  <command>init</command> programs (and others) use a number of log
     191  files to record information such as who was logged into the system and
     192  when. However, these programs will not write to the log files if they
     193  do not already exist. Initialize the log files and give them
     194  proper permissions:</para>
     195
     196<screen os="g"><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}
     197chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog
     198chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog
     199chmod -v 600 ${CLFS}/var/log/btmp</userinput></screen>
     200
     201  <para os="h">The <filename>/var/run/utmp</filename> file records the users
     202  that are currently logged in. The <filename>/var/log/wtmp</filename>
     203  file records all logins and logouts. The
     204  <filename>/var/log/lastlog</filename> file records when
     205  each user last logged in. The <filename>/var/log/btmp</filename> file
     206  records the bad login attempts.</para>
     207
    169208</sect1>
  • BOOK/chroot/common/pwdgroup.xml

    raf2b8f8 r2b15ca5  
    99  <?dbhtml filename="pwdgroup.html"?>
    1010
    11   <title>Creating the passwd and group Files</title>
     11  <title>Creating the passwd, group, and log Files</title>
    1212
    1313  <indexterm zone="ch-chroot-pwdgroup">
     
    1818  <indexterm zone="ch-chroot-pwdgroup">
    1919    <primary sortas="e-/etc/group">/etc/group</primary>
     20    <secondary>chroot</secondary>
     21  </indexterm>
     22
     23  <indexterm zone="ch-boot-pwdgroup">
     24    <primary sortas="e-/var/run/utmp">/var/run/utmp</primary>
     25    <secondary>chroot</secondary>
     26  </indexterm>
     27
     28  <indexterm zone="ch-boot-pwdgroup">
     29    <primary sortas="e-/var/log/btmp">/var/log/btmp</primary>
     30    <secondary>chroot</secondary>
     31  </indexterm>
     32
     33  <indexterm zone="ch-boot-pwdgroup">
     34    <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary>
     35    <secondary>chroot</secondary>
     36  </indexterm>
     37
     38  <indexterm zone="ch-boot-pwdgroup">
     39    <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
    2040    <secondary>chroot</secondary>
    2141  </indexterm>
     
    7999  xpointer="xpointer(//*[@os='e'])"/>
    80100
     101  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     102  href="../../boot/common/pwdgroup.xml"
     103  xpointer="xpointer(//*[@os='f'])"/>
     104
     105<screen os="g"><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
     106chgrp -v utmp /var/run/utmp /var/log/lastlog
     107chmod -v 664 /var/run/utmp /var/log/lastlog
     108chmod -v 600 /var/log/btmp</userinput></screen>
     109
     110  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     111  href="../../boot/common/pwdgroup.xml"
     112  xpointer="xpointer(//*[@os='h'])"/>
     113
    81114  <para>To remove the <quote>I have no name!</quote> prompt, start a
    82115  new shell. Since a full Glibc was installed in <xref
  • BOOK/introduction/common/changelog.xml

    raf2b8f8 r2b15ca5  
    4949          actually used.</para>
    5050        </listitem>
     51        <listitem>
     52          <para>[Chris] - Added creation of log files with passwd and group.</para>
     53        </listitem>
    5154      </itemizedlist>
    5255    </listitem>
Note: See TracChangeset for help on using the changeset viewer.