Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240437 - [OpenRC] sys-apps/openrc-0.3.0 creates utmp & wtmp with wrong permissions
Summary: [OpenRC] sys-apps/openrc-0.3.0 creates utmp & wtmp with wrong permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 23:31 UTC by Billy DeVincentis
Modified: 2008-10-08 16:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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