Changeset 81b4464 in clfs-embedded for BOOK/final-system/common


Ignore:
Timestamp:
Jul 17, 2017, 7:44:29 PM (7 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
573e70c
Parents:
e24b7ec
Message:

final-system/creatingfiles: Remove utmp, wtmp, and btmp creation

musl doesn't properly support these files and we take them out of the
busybox config when building it, so don't create the files in the first
place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/creatingfiles.xml

    re24b7ec r81b4464  
    99  <?dbhtml filename="creatingfiles.html"?>
    1010
    11   <title>Creating the passwd, group, and log Files</title>
     11  <title>Creating the passwd, group, and lastlog Files</title>
    1212
    1313  <indexterm zone="ch-final-system-creatingfiles">
     
    2020
    2121  <indexterm zone="ch-final-system-creatingfiles">
    22     <primary sortas="e-/var/run/utmp">/var/run/utmp</primary>
    23   </indexterm>
    24 
    25   <indexterm zone="ch-final-system-creatingfiles">
    26     <primary sortas="e-/var/log/btmp">/var/log/btmp</primary>
    27   </indexterm>
    28 
    29   <indexterm zone="ch-final-system-creatingfiles">
    3022    <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary>
    31   </indexterm>
    32 
    33   <indexterm zone="ch-final-system-creatingfiles">
    34     <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
    3523  </indexterm>
    3624
     
    219207
    220208  <para>The <command>login</command>, <command>agetty</command>, and
    221   <command>init</command> programs (and others) use a number of log
    222   files to record information such as who was logged into the system and
    223   when. However, these programs will not write to the log files if they
    224   do not already exist. Initialize the log files and give them
     209  <command>init</command> programs (and others) use the lastlog
     210  file to record information such as who was logged into the system and
     211  when. However, these programs will not write to the lastlog file if it
     212  does not already exist. Initialize the lastlog file and give it
    225213  proper permissions:</para>
    226214
    227 <screen><userinput>touch ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/{btmp,lastlog,wtmp}
    228 chmod -v 664 ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/lastlog</userinput></screen>
    229 
    230   <para>The <filename>/var/run/utmp</filename> file records the users
    231   that are currently logged in. The <filename>/var/log/wtmp</filename>
    232   file records all logins and logouts. The
    233   <filename>/var/log/lastlog</filename> file records when
    234   each user last logged in. The <filename>/var/log/btmp</filename> file
    235   records the bad login attempts.</para>
     215<screen><userinput>touch ${CLFS}/targetfs/var/log/lastlog
     216chmod -v 664 ${CLFS}/targetfs/var/log/lastlog</userinput></screen>
    236217
    237218</sect1>
Note: See TracChangeset for help on using the changeset viewer.