[mythtv-users] I broke my mythTV, help!

Bill Meek keemllib at gmail.com
Sat Nov 10 03:46:31 UTC 2018


On 11/9/18 9:24 PM, Douglas Peale wrote:
> On 11/9/18 9:55 AM, Bill Meek wrote:
>> On 11/9/18 11:47 AM, Ian Cameron wrote:
>>> On Fri, 9 Nov 2018 at 17:24, Douglas Peale <Douglas_Peale at comcast.net>
>>> wrote:
>>>
>>>> $ sudo chown -h mythtv:mythtv mythtv
>>>> $ ls -l
>>>> rwxrwxrwx  1 mythtv mythtv   53 Nov  4 16:50 mythtv ->
>>>> /mnt/f9d5db19-7551-41dd-ba43-9c07f0a8305e/home/mythtv
>>>> $ sudo -H -i -u mythtv env
>>>> sudo: unable to change directory to /home/mythtv: Permission denied
>>>> sudo: unable to execute /bin/sh: Permission denied
>>>>
>>>>
>>>> Nope, changing the user and group of the soft link was not sufficient to
>>>> fix the problem.
>>>>
>>>
>>> You should check the ownership and permissions of the parent directories
>>> back to the root from the real location, i.e. from:
>>> /mnt/f9d5db19-7551-41dd-ba43-9c07f0a8305e/home/mythtv back to /.  The
>>> ownership isn't so important, but you'll want r-x for 'other' on each
>>> parent directory permission.
>>>
>>> Cheers, Ian
>>
>> I'd add using ls -ld, as in: ls -ld / /mnt /mnt/f9d5db19-7551-41dd-ba43-9c07f0a8305e etc.
>>
>> Likely the cause of the config.xml not being found. So if this works, then
>> you can delete the override if you like.
>>
> How should I delete the override? I tried running
> 
> sudo systemctl edit mythtv-backend.service
> 
> and deleting the lines I added, but it gave an error message about the temp file being empty, and refused to save the changes.

man systemctl and search for revert for detail.

sudo systemctl revert mythtv-backend.service

That will remove anything in /etc/systemd/system for that service,
leaving the one in /lib/systemd/system. Personally, I'd keep a
copy of the output of: systemctl cat mythtv-backend.service in a safe
place before doing the above.

Implies that you found something unexpected in the path to the old disk's HOME.

-- 
Bill


More information about the mythtv-users mailing list