[mythtv-commits] Ticket #7832: Add support to drop permissions if running as root
MythTV
mythtv at cvs.mythtv.org
Sun Feb 21 14:51:20 UTC 2010
#7832: Add support to drop permissions if running as root
--------------------------------+-------------------------------------------
Reporter: superm1@… | Owner: ijr
Type: patch | Status: closed
Priority: minor | Milestone: 0.23
Component: MythTV - General | Version: head
Severity: medium | Resolution: fixed
Mlocked: 0 |
--------------------------------+-------------------------------------------
Comment(by chckens@…):
I'm running the latest packaged version of MythTV in Ubuntu Lucid, and
this change seems to be causing problems with opening tuners.
My mythtv user is in the video group, and my tuners are all set to group
video and are group writable:
{{{
graham at mauru:/home/lounge$ ls -l /dev/dvb/adapter0/frontend0
crw-rw----+ 1 root video 212, 7 2010-02-21 12:00
/dev/dvb/adapter0/frontend0
}}}
Yet when run from the upstart script which runs myth with --user mythtv,
it's unable to access the tuners:
{{{
2010-02-20 12:12:52.103 DVBChan(1:/dev/dvb/adapter0/frontend0) Warning:
Opening
DVB frontend device failed.
eno: Permission denied (13)
}}}
I tried su-ing to the mythtv user and running mythbackend without a --user
parameter, then everything works as expected.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7832#comment:4>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list