diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/createfiles.xml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml index f0091bcd2..444cb091c 100644 --- a/chapter06/createfiles.xml +++ b/chapter06/createfiles.xml @@ -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> |