[mythtv-users] which user should setup mythtv and xmltv??

Hika van den Hoven hikavdh at gmail.com
Sat Jan 27 23:38:33 UTC 2018


Hoi Jim,

Saturday, January 27, 2018, 11:37:43 PM, you wrote:



> On 01/27/2018 04:29 PM, Mark Perkins wrote:
>> On 27 January 2018 11:36:08 pm Jim Abernathy <jfabernathy at gmail.com> wrote:
>>
>>> having recently run into permission issue I'd like some advice on what
>>> should be done by which user??
>>>
>> Personally if I am troubleshooting anything related to the backend
>> (mythtv-setup, xmltv grabbers, ttvdb, tmdb, mythfilldatabase) I
>> troubleshoot as the user that runs the BE. Just a personal preference.
>>

> What determines that mythbackend runs as user 'mythtv'?  I assumed that
> it did, but don't know that for a fact.

It is setup that way by most if not all installations and run/service
scripts coming with it. However if you do compile yourself it is
determined by you. But also if you install it as a package you could
adapt the service/run scripts coming with it to run as a different
user. Then however you must readapt on any upgrade as most package
installers will overwrite any changes made by you at those places.

> Jim A

>>> I use Ubuntu 16.04 and used to use Mythbuntu 16.04 so a lot of things
>>> just happened.
>>>
>>> My normal process is to install Ubuntu and create myself as the user,
>>> "jim". I do all my work as "jim" and sudo when I need to.
>>>
>>> When you initially run mythtv-setup it adds "jim" to the mythtv group
>>> and I logout then back in, again as "jim".
>>>
>>> Generally, I could do everything as "jim" once I got to v0.28 and not
>>> 29. On 0.27 I'd have issues if I ran mythfilldatabase as "jim" due to
>>> some files created in /tmp without being user "mythtv".
>>>
>>> So with v29, I've had no issue until I converted to XMLTV from the
>>> internal SchedulesDirect grabber. It seems that the grabber will run
>>> automatically as user 'mythtv', but if I run it manually as 'jim', it's
>>> looking for config and database files under the wrong user.
>>>
>>> So what I'm asking, is should I just start doing all setup and
>>> maintenance work as user "mythtv"?  Meaning making mythtv a full user
>>> with password, put on the sudoers list, and have a proper shell.
>>>
>>> Jim A
>>>
>>>
>>>
>> As they say, there is more than one way to skin a cat. Having mythtv user
>> with a login shell is a valid option. sudo -umythtv...... or sudo -umythtv
>> bash may be another. You could give mythtv a login shell for
>> troubleshooting and revoke it later. Do it all as jim and symlink / chown.
>> Lots of options. No right or wrong answers.
>>
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org

> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org




Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list