1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 12_doc_lastb.dpatch by Javier Fernández-Sanguino Peńa
4
## All lines beginning with `## DP:' are a description of the patch.
6
## DP: This patch is reported to be incorrect. See bug report for
9
## DP: Document the fact that file mode for btmp is important. (bug
13
diff -Nru sysvinit-2.86.ds1/man/last.1 sysvinit-2.86.ds1.new/man/last.1
14
--- sysvinit-2.86.ds1/man/last.1 2004-07-30 13:39:18.000000000 +0200
15
+++ sysvinit-2.86.ds1.new/man/last.1 2005-02-15 08:58:19.000000000 +0100
17
configuration issue. If you want the files to be used, they can be
18
created with a simple \fBtouch\fP(1) command (for example,
19
\fItouch /var/log/wtmp\fP).
21
+Moreover, since the \fIbtmp\fP file might contain sensitive information
22
+that might be useful for a local attacker, this file is only logged
23
+to if it is not world readable. In order to get login programs to
24
+write there you need to \fIchmod 640 /var/log/btmp\fP).