Changeset b6f86141


Ignore:
Timestamp:
01/14/2004 01:34:43 AM (20 years ago)
Author:
Greg Schafer <greg@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
e4d88a56
Parents:
aba5bfb
Message:

Moved log file creation from Shadow to "Creating the passwd
and group files" and renamed that section accordingly.
Closes 741.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3166 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    raba5bfb rb6f86141  
    5050</itemizedlist>
    5151</listitem>
     52
     53<listitem><para>January 13th, 2004 [greg]: Moved log file creation from Shadow
     54to "Creating the passwd and group files" and renamed that section accordingly.
     55Closes 741.</para></listitem>
    5256
    5357<listitem><para>January 13th, 2004 [greg]: Upgraded to Automake-1.8.2, Kbd-1.11
  • chapter06/chapter06.xml

    raba5bfb rb6f86141  
    223223
    224224<sect1 id="ch06-pwdgroup">
    225 <title>Creating the passwd and group files</title>
     225<title>Creating the passwd, group and log files</title>
    226226<?dbhtml filename="pwdgroup.html" dir="chapter06"?>
    227227
     
    279279they are installed, we turn off this function for the duration of this
    280280chapter.</para>
     281
     282<para>The <userinput>login</userinput>, <userinput>agetty</userinput> and
     283<userinput>init</userinput> programs (and some others) use a number of log
     284files to record information such as who was logged into the system and when.
     285These programs, however, won't write to the log files if they don't already
     286exist. Initialize the log files and give them their proper permissions:</para>
     287
     288<screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
     289chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen>
     290
     291<para>The <filename>/var/run/utmp</filename> file records the users that are
     292currently logged in. The <filename>/var/log/wtmp</filename> file records all
     293logins and logouts. The <filename>/var/log/lastlog</filename> file records for
     294each user when he or she last logged in. The <filename>/var/log/btmp</filename>
     295file records the bad login attempts.</para>
    281296
    282297</sect1>
  • chapter06/shadowpwd.xml

    raba5bfb rb6f86141  
    1616<sect2>
    1717<title>Installation of Shadow</title>
    18 
    19 <para>The <userinput>login</userinput>, <userinput>getty</userinput> and
    20 <userinput>init</userinput> programs (and some others) maintain a number
    21 of logfiles to record who are and who were logged in to the system.  These
    22 programs, however, don't create these logfiles when they don't exist, so if
    23 you want this logging to occur you will have to create the files yourself.
    24 The Shadow package needs to detect these files in their proper place, so we
    25 create them now, with their proper permissions:</para>
    26 
    27 <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
    28 chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen>
    29 
    30 <para>The <filename>/var/run/utmp</filename> file lists the users that are
    31 currently logged in, the <filename>/var/log/wtmp</filename> file who
    32 <emphasis>were</emphasis> logged in and when.
    33 The <filename>/var/log/lastlog</filename> file shows for each user when he
    34 or she last logged in, and the <filename>/var/log/btmp</filename> lists the
    35 bad login attempts.</para>
    3618
    3719<para>Shadow hard-wires the path to the <userinput>passwd</userinput> binary
Note: See TracChangeset for help on using the changeset viewer.