create-utmp.xml 700 B

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