create-utmp.xml 841 B

1234567891011121314151617181920
  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/wtmp \</userinput>
  12. <userinput>&nbsp;&nbsp;&nbsp; /var/log/btmp /var/log/lastlog &amp;&amp;</userinput>
  13. <userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput>
  14. <userinput>&nbsp;&nbsp;&nbsp;/var/log/btmp /var/log/lastlog</userinput></screen></para>
  15. </sect2>