From 5cdc4895733ce3a723a5a58686a4d92a3c69c953 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 8 Oct 2008 13:58:17 +0000 Subject: Fix utmp permissions, Gentoo #240437. --- init.d/bootmisc.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index 50e83a0..529097e 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 -- cgit v1.2.3