<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 4/26/23 09:11, James Abernathy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANFv2E=ed23NEZYiyLDy9Egr_cQSQnhpZJE0hzazmmPWpo=O0A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Apr 26, 2023 at
7:40 AM Mike Perkins <<a
href="mailto:mikep@randomtraveller.org.uk"
moz-do-not-send="true" class="moz-txt-link-freetext">mikep@randomtraveller.org.uk</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"><br>
A quick note: If you add the mythtv user yourself, make sure
it has a repeatable UID and GID, <br>
otherwise, should there be any new users added to your
system(s) in future, you'll get drift and <br>
have to fix all the directories and files to point to the
new values.<br>
<br>
Ask me how I know! In practice I deliberately set mine to
UID=1010 and GID=1010 just to keep them <br>
clear of future problems.<br>
<br>
-- <br>
<br>
Mike Perkins<br>
</blockquote>
<div><br>
</div>
<div>Thanks for the tip. I have noticed when I create a new
version of Ubuntu with a fresh install of MythTV, I have to
do a lot of chown commands when bringing over my recordings
from an old system before restoring the mythconverg
database.</div>
<div><br>
</div>
<div>So is UID 1010 and GID 1010 in a range that ubuntu will
not use for its purposes?</div>
<div><br>
</div>
<div>Jim A</div>
<div> </div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
</pre>
</blockquote>
<p>The mythtv user as created by the package is a system user id.
These are allocated in the range 100 to 999. I use an id of 200
for the mythtv user and mythtv group. System users are those that
are never logged on directly, and thus do not appear in the drop
down of users at the login screen. I would recommend using an id
in the system range (100-999). 200 is good because it will not
have been used yet. When you install ubuntu it allocates many ids
in the system range, starting from 100. It is unlikely to reach
200 before you install mythtv. The allocation of system ids is
clever enough not to have a problem with the extra id of 200 you
add. Subsequent application installs will continue to use ids in
the 100 range and will skip id 200 if it is already used.</p>
<p>This is what I use. Does this create a home directory or do I
need --home /home/mythtv on the adduser on the next version of
ubuntu?<br>
</p>
<p>addgroup --gid 200 mythtv<br>
adduser --ingroup mythtv --system --uid 200 mythtv <br>
</p>
<p>Peter<br>
</p>
<br>
</body>
</html>