[mythtv-users] Mythfrontend fails if mythtv installed after user mythtv created

Mike Hodson mystica at gmail.com
Fri Jun 21 20:59:37 UTC 2024


On Fri, Jun 21, 2024, 14:47 Peter Bennett <pb.mythtv at gmail.com> wrote:

>
> On 6/21/24 16:07, James Abernathy wrote:
>
>
>
>
> 3. Create the mythtv user to the desired gid/uid and add your own user to
> the mythtv group
> i.e.
> sudo addgroup --gid 1006 mythtv
> sudo adduser --ingroup mythtv --home /home/mythtv --shell /bin/bash --uid
> 1006 mythtv
> sudo usermod -aG mythtv jim
>
>

4. I reboot for safety reasons, then sudo apt install mythtv
>
>
5. point browser to localhost:6544.  The mythconverg database should be set
> up.
> 6. Continue with the remaining backend setup using Web App and restart the
> backend with the button at the top.
>
>

7. In a terminal in your user copy /etc/mythtv/config.xml to
> ~/,mythtv/config.xml
> 8. Run mythfrontend.
>
> Jim A
>
>
>
> The way it  works:
>
> You perform your setup with the browser, and remember what you set for
> Security Pin.
>
> Then log on as a different user (eg jim) and run mythfrontend. It gives a
> screen that says cannot connect database. Arrow to the search button and
> press enter. It gives a list of running backend on  your network. select
> one, enter the pins, and mythfrontend creates your config.xml  and starts
> up.
>

This entirely avoids the permission problem potential on the mythtv user
directory, but I suspect that the script creating the user creates the user
directory with more permissive access than Debian's default login.defs
would suggest, and what is used by default with Jim's command to create the
user beforehand.

I don't think your problems are related to creating the mythtv user before
> installing. I always create it before, so that it has the same id number as
> before. This makes sure your recording files from a prior installation have
> the same user permissions as your new new install.
>

I believe they are actually directly connected to the way that the users
homedir is created prior, and Jim's initial desire to simply symilink the
configuration file.  I have gone over this in detail in my last few replies
to this thread.

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20240621/2604b814/attachment.htm>


More information about the mythtv-users mailing list