[mythtv-users] Creating user "mythtv" before installing mythtv

Stephen Worthington stephen_agent at jsw.gen.nz
Fri Mar 1 23:00:54 UTC 2024


On Fri, 1 Mar 2024 16:05:02 +0000, you wrote:

>On 01/03/2024 15:32, Peter Bennett wrote:
>> On 3/1/24 07:58, James Abernathy wrote:
>>>
>>> It was pointed out that deb-multimedia's version of mythtv v34 from stable-backports has an
>>> additional line in the systemd service, mythtv-backend.service.
>>>
>>> Environment=HOME=/var/lib/mythtv
>>>
>>> When I created my user 'mythtv' before installing mythtv I used:
>>>
>>> sudo addgroup --gid 200 mythtv
>>> sudo adduser --ingroup mythtv --home /home/mythtv --shell /bin/bash --uid 200 mythtv
>>>
>>> This was causing the mythtv Web App to use an incorrect mythconverg password, 'mythv' and it would
>>> not connect to the database.
>> Do you mean mythweb? The web app is the new page on port 6544 in V34. mythweb is deprecated. The web
>> app does not use the database.
>>>
>>
>I should point out that if you're going to add a new user the UID and GID should be (a free value)
>greater than 1000, since values below 1000 are reserved for processes installed by the system (apt
>etc). Mine are set (arbitrarily) at 1006/1006 but that is because I have other things going on.
>Similarly, I have a 'NAS' which shares files through NFS using 1010/1010.
>
>Nice catch about the environment variable, though. Does systemd have to interfere with absolutely
>everything?

This is not at all an issue of systemd doing something, just the
package maintainers.  You will find that the old SysV scripts also
have environment variables doing the same sort of thing, as does any
other way of starting background programs.


More information about the mythtv-users mailing list