aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-09-14 11:48:33 -0400
committerBill Nottingham <notting@redhat.com>2010-09-14 11:48:33 -0400
commitae5338178c287a5354aee978a72998d3e72585a1 (patch)
treec2bc5756a3b8f3831b9f72709934f4aad520516d /rc.d
parent38e0342f621d8b68691f1e29bdcb7e4a190ed181 (diff)
downloadinitscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar
initscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar.gz
initscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar.bz2
initscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar.xz
initscripts-ae5338178c287a5354aee978a72998d3e72585a1.zip
Reset btmp on boot too, if necessary (#633768, <dmach@redhat.com>)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 3 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index ac03961d..ff003e92 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -587,9 +587,10 @@ rm -f /var/gdm/.gdmfifo &> /dev/null
# Clean up utmp/wtmp
> /var/run/utmp
-touch /var/log/wtmp
-chgrp utmp /var/run/utmp /var/log/wtmp
+touch /var/log/wtmp /var/log/btmp
+chgrp utmp /var/run/utmp /var/log/wtmp /var/log/btmp
chmod 0664 /var/run/utmp /var/log/wtmp
+chmod 0600 /var/log/btmp
if [ -n "$_NEED_XFILES" ]; then
> /var/run/utmpx
touch /var/log/wtmpx