Bug #248

Recordings owned by root

Added by mjl about 15 years ago. Updated over 12 years ago.

Status:Closed Start date:
Priority:Normal Due date:12/31/1969
Assignee:- % Done:

0%

Category:- Spent time: -
Target version:6.00.04

Description

rw-r--r- 1 root root 4128807684 2009-02-28 20:00 1641_20090228193000.mpg
rw-rw-rw 1 root root 63958 2009-02-28 20:20 1641_20090228193000.mpg.png

Should be owned by mythtv

History

Updated by craigtv almost 15 years ago

This is because the mythbackend service is starting mythbacked as root. You can fix this by editing the following file:

/etc/sv/mythbackend/run

Near the end of the file, change this line:

exec /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log

to:

exec /bin/su - mythtv -c "/usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log"

Note, you will also need to change the ownership of the mythbackend log so that the backend can still write to it ...

chown myth:myth /var/log/mythtv/mythbackend.log

Then restart the mythbackend service:

sv restart mythbackend

I've done this and not had any issues, but we might want to hear from one of the devs to make sure it wouldn't cause any issues. Also, if there is a proper way to submit this as a patch, let me know.

Updated by cecil almost 15 years ago

Thanks for the post Craig.

Updated by jams over 12 years ago

  • Target version changed from 8.0 to 6.00.04

Also available in: Atom PDF