Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 240437

Summary: [OpenRC] sys-apps/openrc-0.3.0 creates utmp & wtmp with wrong permissions
Product: Gentoo Linux Reporter: Billy DeVincentis <billydv1>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: roy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Billy DeVincentis 2008-10-07 23:31:05 UTC
For users of libutempter in kde who require wall messaging, the correct permissions for utmp and wtmp are 664, not 644 as is scripted in /etc/init.d/bootmisc. This must be changed for kde write daemon to function properly.
We need to change this 

if dir_writeable /var/run; then
		ebegin "Creating user login records"
		cp /dev/null /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
		fi
		eend 0





to  this


if dir_writeable /var/run; then
		ebegin "Creating user login records"
		cp /dev/null /var/run/utmp
		if dir_writeable /var/log; then
			logw=true
			[ -e /var/log/wtmp ] || cp /dev/null /var/log/wtmp
			chmod 0664 /var/run/utmp /var/log/wtmp
		fi
		eend 0

Reproducible: Always
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-10-08 15:15:04 UTC
This will appear in the next patchset.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2008-10-08 16:22:54 UTC
Fixed in 0.3.0-r1