Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92526 - /etc/init.d/mythbackend changes permissions in /var/run
Summary: /etc/init.d/mythbackend changes permissions in /var/run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 92548 93071 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-13 12:07 UTC by Stephane Bonnell
Modified: 2005-05-18 08:22 UTC (History)
2 users (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 Stephane Bonnell 2005-05-13 12:07:02 UTC
during the start process the script changes permissions of certains files.

        # Work around any strange permissions that may be on these files.
        chown -R "${MYTH_USER}" "$(dirname "${MYTH_LOG}")"
        chown -R "${MYTH_USER}" "$(dirname "${MYTH_PID}")"

By default MYTH_PID is /var/run/mythbackend.pid so all files in /var/run have there proprietary change.

Reproducible: Always
Steps to Reproduce:
1. look at a  find / -user mythuser -print
2. start mythbackend
3. look again at a  find / -user mythuser -print

Actual Results:  
all files in /var/run is owned by the mythuser


Expected Results:  
no change in /var/run except /var/run/mythbackend.pid
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2005-05-14 10:11:38 UTC
I've fixed up the scripts. But I'm still getting an error about

"QSettings: error creating .qt"

on start. Which is annoying but not harmful since we're not using any QT plugins which is what it appears that file is used for.

I'll have to look into it more.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-05-14 10:57:16 UTC
I didn't copy over the new init scripts on my own machine before testing... Duh...

it's all fixed now.

Re-open if there's other problems.

Quickest way to fix it yourself is
# cp /usr/portage/media-tv/mythtv/files/0.18-mythbackend.rc /etc/init.d/mythbackend
# chmod +x /etc/init.d/mythbackend
# cp /usr/portage/media-tv/mythtv/files/0.18-mythbackend.cof /etc/conf.d/mythbackend
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-05-14 10:59:33 UTC
*** Bug 92548 has been marked as a duplicate of this bug. ***
Comment 4 Olliver Schinagl 2005-05-18 08:22:58 UTC
*** Bug 93071 has been marked as a duplicate of this bug. ***