[mythtv-users] Ubuntu 18.04, change mythtv user

Rajil Saraswat rajil.s at gmail.com
Sat May 19 02:17:53 UTC 2018


On 05/17/2018 11:27 PM, Stephen Worthington wrote:
> On Thu, 17 May 2018 21:13:49 -0500, you wrote:
>
> That should have worked, but when you change systemd config files, you
> have to run this command to make it see the changes:
>
> systemctl daemon-reload
>
> However, you should never change the files in /lib/systemd/system as
> they are installed from the packages and will be overwritten back to
> the old version the next time that MythTV package gets updated.  The
> correct way to change systemd units is to create an override file
> under /etc/systemd/system.  So you should create a directory like
> this, from root or using sudo:
>
> mkdir /etc/systemd/system/mythtv-backend.service.d
> chmod u=rwx,g=rx,o=rx /etc/systemd/system/mythtv-backend.service.d
>
> In that directory, any files with name *.conf will be read as
> overrides for settings in the
> /lib/systemd/system/mythtv-backend.service file.  So create a file
> called, for example, mythtv-backend-override.conf and put your
> override settings inside that.  That file should contain:
>
> [Service]
> User=<my new user>
>
> Also note that any user that runs MythTV programs needs to be added to
> the mythtv group:
>
> usermod -a -G mythtv <user name>
>
> and probably also a few other groups - check what groups your mythtv
> user is a member of:
>
> su - mythtv -c groups
> _______________________________________________
> 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

Thanks for the detailed instructions. This worked very well.



More information about the mythtv-users mailing list