Ignore:
Timestamp:
Jan 8, 2014, 11:28:36 AM (9 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

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