|
@@ -129,16 +129,18 @@ EOF</userinput></screen>
|
|
|
do not already exist. Initialize the log files and give them
|
|
|
proper permissions:</para>
|
|
|
|
|
|
-<screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
|
|
|
+<screen><userinput>touch /var/log/{btmp,lastlog,wtmp}
|
|
|
chgrp -v utmp /var/run/utmp /var/log/lastlog
|
|
|
chmod -v 664 /var/run/utmp /var/log/lastlog
|
|
|
chmod -v 600 /var/log/btmp</userinput></screen>
|
|
|
|
|
|
- <para>The <filename>/var/run/utmp</filename> file records the users
|
|
|
- that are currently logged in. The <filename>/var/log/wtmp</filename>
|
|
|
- file records all logins and logouts. The
|
|
|
- <filename>/var/log/lastlog</filename> file records when
|
|
|
- each user last logged in. The <filename>/var/log/btmp</filename> file
|
|
|
- records the bad login attempts.</para>
|
|
|
+ <para>The <filename>/var/log/wtmp</filename> file records all logins and
|
|
|
+ logouts. The <filename>/var/log/lastlog</filename> file records when each
|
|
|
+ user last logged in. The <filename>/var/log/btmp</filename> file records the
|
|
|
+ bad login attempts.</para>
|
|
|
+
|
|
|
+ <note><para>The <filename>/run/utmp</filename> file records the users that
|
|
|
+ are currently logged in. This file is created dynamically in the boot
|
|
|
+ scripts.</para></note>
|
|
|
|
|
|
</sect1>
|