1
0

create-utmp.xml 687 B

1234567891011121314151617
  1. <sect2>
  2. <title>Creating the /var/run/utmp, /var/log/wtmp and /var/log/btmp files</title>
  3. <para>Programs like login, shutdown, uptime and others want to read from and
  4. write to the /var/run/utmp, /var/log/btmp and /var/log/wtmp. These files contain
  5. information about who is currently logged in. They also contain information
  6. on when the computer was last booted and shutdown and a record of the
  7. bad login attempts.</para>
  8. <para>Create these files with their proper permissions by running the
  9. following commands:</para>
  10. <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} &amp;&amp;
  11. chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen>
  12. </sect2>