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

Douglas Peale Douglas_Peale at comcast.net
Sat Nov 10 03:58:56 UTC 2018


On 11/9/18 7:46 PM, Bill Meek wrote:
> 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.
>
That worked, Thank you.
> Implies that you found something unexpected in the path to the old disk's HOME.
>
Yes, the /mnt/mounted_drive directory was owned by me rather than root, and only I had permission to access it. Changing
ownership, and allow others read and executable access allowed things to work as they did before I swapped the drive.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181109/72480538/attachment.sig>


More information about the mythtv-users mailing list