Changeset 2b15ca5 for BOOK/boot/common


Ignore:
Timestamp:
May 24, 2014, 9:35:30 PM (11 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-sysvinit, sysvinit
Children:
1cfa56e
Parents:
af2b8f8
Message:

Added log file creation

File:
1 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>
Note: See TracChangeset for help on using the changeset viewer.