create-utmp.xml 881 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 attempts.
  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 \</userinput>
  17. <userinput>&nbsp;&nbsp;&nbsp; /var/log/btmp
  18. /var/log/lastlog &amp;&amp;</userinput>
  19. <userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput>
  20. <userinput>&nbsp;&nbsp;&nbsp;/var/log/btmp /var/log/lastlog
  21. </userinput>
  22. </literallayout></blockquote>
  23. </sect2>