aboutsummaryrefslogtreecommitdiff
path: root/init.d/bootmisc.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/bootmisc.in')
-rw-r--r--init.d/bootmisc.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index 50e83a0c..529097ef 100644
--- a/init.d/bootmisc.in
+++ b/init.d/bootmisc.in
@@ -77,10 +77,13 @@ start()
if dir_writeable /var/run; then
ebegin "Creating user login records"
cp /dev/null /var/run/utmp
+ chgrp utmp /var/run/utmp
+ chmod 0664 /var/run/utmp
if dir_writeable /var/log; then
logw=true
[ -e /var/log/wtmp ] || cp /dev/null /var/log/wtmp
- chmod 0644 /var/run/utmp /var/log/wtmp
+ chgrp utmp /var/log/wtmp
+ chmod 0664 /var/log/wtmp
fi
eend 0