create-utmp.xml 792 B

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