Changeset 2be952c


Ignore:
Timestamp:
Jan 8, 2014, 11:28:36 AM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
124fbb6d
Parents:
0ddb5ca
Message:

Commands to create log files are no longer needed

Location:
BOOK
Files:
3 edited

Legend:

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

    r0ddb5ca r2be952c  
    202202  group's name.</para>
    203203
    204   <para os="f">The <command>login</command>, <command>agetty</command>, and
    205   <command>init</command> programs (and others) use a number of log
    206   files to record information such as who was logged into the system and
    207   when. However, these programs will not write to the log files if they
    208   do not already exist. Initialize the log files and give them
    209   proper permissions:</para>
    210 
    211 <screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}
    212 chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog
    213 chmod -v 600 ${CLFS}/var/log/btmp</userinput></screen>
    214 
    215   <para>The <filename>/var/run/utmp</filename> file records the users
    216   that are currently logged in. The <filename>/var/log/wtmp</filename>
    217   file records all logins and logouts. The
    218   <filename>/var/log/lastlog</filename> file records when
    219   each user last logged in. The <filename>/var/log/btmp</filename> file
    220   records the bad login attempts.</para>
    221 
    222204</sect1>
  • BOOK/chroot/common/pwdgroup.xml

    r0ddb5ca r2be952c  
    102102  for the duration of the next chapters.</para>
    103103
    104   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    105   href="../../boot/common/pwdgroup.xml"
    106   xpointer="xpointer(//*[@os='f'])"/>
    107 
    108 <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
    109 chgrp -v utmp /var/run/utmp /var/log/lastlog
    110 chmod -v 664 /var/run/utmp /var/log/lastlog
    111 chmod -v 600 /var/log/btmp</userinput></screen>
    112 
    113   <para>The <filename>/var/run/utmp</filename> file records the users that
    114   are currently logged in. The <filename>/var/log/wtmp</filename> file records
    115   all logins and logouts. The <filename>/var/log/lastlog</filename> file
    116   records when each user last logged in. The <filename>/var/log/btmp</filename>
    117   file records the bad login attempts.</para>
    118 
    119104</sect1>
  • BOOK/introduction/common/changelog.xml

    r0ddb5ca r2be952c  
    4141      <itemizedlist>
    4242        <listitem>
     43          <para>[Chris] - Removed commands to create files in /var/run and
     44          /var/log - systemd now used its journal for all logs.</para>
     45        </listitem>
     46        <listitem>
    4347          <para>[Chris] - Removed obsolete sed command from temp-system Coreutils.</para>
    4448        </listitem>
Note: See TracChangeset for help on using the changeset viewer.