diff options
author | Roy Marples <roy@marples.name> | 2008-10-08 13:58:17 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-10-08 13:58:17 +0000 |
commit | 5cdc4895733ce3a723a5a58686a4d92a3c69c953 (patch) | |
tree | e173b8cb088e526de264e0af79ef7a9b97486a28 | |
parent | 4d74e94c3912a4e767becf72283b858b98ba37c0 (diff) |
Fix utmp permissions, Gentoo #240437.
-rw-r--r-- | init.d/bootmisc.in | 5 |
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 |