<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 6, 2023 at 6:49 PM Hika van den Hoven <<a href="mailto:hikavdh@gmail.com">hikavdh@gmail.com</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">Hoi Daryl,<br>
<br>
Saturday, January 7, 2023, 12:18:00 AM, you wrote:<br>
<br>
<br>
<br>
<br>
> On Fri, Jan 6, 2023 at 6:09 PM Mike Perkins<br>
> <<a href="mailto:mikep@randomtraveller.org.uk" target="_blank">mikep@randomtraveller.org.uk</a>> wrote:<br>
<br>
> On 06/01/2023 21:01, Hika van den Hoven wrote:<br>
 >> Hoi Daryl,<br>
 >> <br>
 >> There is one thing you always have to remember when you move data like<br>
 >> this between old and new systems or even more important, share them<br>
 >> between two installation on one physical system.<br>
 >> <br>
 >> usernames and groupnames are meaningless to the computer. The computer<br>
 >> uses the numerical u(ser)id and g(roup)id. For our benefit as stupid<br>
 >> mortals it translates it to a name.<br>
 >> <br>
 >> However the translation between the numerical id's and the names is<br>
 >> unique to every installation, with the only exception of root. Root<br>
 >> always has a uid of 0 and a gid of 0. Some of the groups have<br>
 >> generally by agreement the same gid, but they could be another.<br>
 >> <br>
 >> So if you create a new installation and want to copy or share data<br>
 >> with an old installation you have to ensure the involved users and<br>
 >> groups have the same uid and gid on both installations. You can set<br>
 >> the uid on user creation (if not already taken by another user).<br>
 >> <br>
 >> This is why I use ldap for network wide user and group management. The<br>
 >> user hika and mythtv have the same uid on all computers and most<br>
 >> groups likewise.<br>
 >> <br>
>  I would add another complication, which I discovered copying a<br>
> disk from an old backend to a new one <br>
>  (duff motherboard). Many of the users and groups generated by a<br>
> fresh install are "system" users; <br>
>  that means they are usually used only by OS subsystems. These are less than 1000 and typically<br>
>  assigned the next available numbers. As the order of installation is indeterminate during an OS<br>
>  install, these are essentially random and won't match the UIDs and GIDs on any other host.<br>
>  <br>
>  Mythtv as installed from repos is often treated as a "system"<br>
> install, meaning that the UID and GID <br>
>  the user "mythtv" is assigned can often collide with UIDs from<br>
> other subsystems like, for example, <br>
>  gdm and lxd.<br>
>  <br>
>  For this reason I now *always* create a mythtv user with a known UID and GID in the normal user<br>
>  range (> 1000) before installing any software. That ensures (i)<br>
> there are no collisions, (ii) any <br>
>  existing video files still have the right UID and GID, (iii) the<br>
> user is created under /home rather <br>
>  than under /var, and (iv) if I access those directories from<br>
> elsewhere I get sensible answers from NFS.<br>
>  <br>
>  -- <br>
>  <br>
>  Mike Perkins<br>
<br>
<br>
> So, in my case, with a clean install of 22.04/32 on a separate<br>
> partition of the 120GB OS ssd and a database restore from 20.04/31<br>
> there are bound to be these kinds of issues? Unless I'm one in one thousand lucky, ouch. <br>
>  <br>
>  <br>
Yes, and the smartest move would be to start over your 22.04 install<br>
and this time create the mythtv and daryl user as the first thing<br>
after you created the basic install and before you install any other<br>
software and with the same uid as on your 20.04 install.<br>
If you haven't copied over much you can try to repair, but chances are<br>
you either fix to much or to little and stumble into it again in 6<br>
months or so.<br>
<br>
I don't have the commands ready at hand as I rarely use them, but I<br>
can look it up.<br>
<br>
<br>
Tot mails,<br>
  Hika                            mailto:<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a><br>
<br>
"Zonder hoop kun je niet leven<br>
Zonder leven is er geen hoop<br>
Het eeuwige dilemma<br>
Zeker als je hoop moet vernietigen om te kunnen overleven!"<br>
<br>
De lerende Mens<br></blockquote><div>Okay, so how do I determine the UID's from 20.04, and if I can do that why can't I manipulate the UId's in 22.04 ?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>