<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><br><div>> Date: Mon, 8 Aug 2016 23:01:36 +0200<br>> From: hikavdh@gmail.com<br>> To: mythtv-users@mythtv.org<br>> Subject: Re: [mythtv-users] Group/user numbers changing on 16.04??<br>> <br>> Hoi Jim,<br>> <br>> Monday, August 8, 2016, 10:41:41 PM, you wrote:<br>> <br>> > <br>> <br>> <br>> <br>> >> Date: Mon, 8 Aug 2016 22:13:41 +0200<br>> >> From: hikavdh@gmail.com<br>> >> To: mythtv-users@mythtv.org<br>> >> Subject: Re: [mythtv-users] Group/user numbers changing on 16.04??<br>> >> <br>> >> Hoi Jim,<br>> >> <br>> >> Monday, August 8, 2016, 9:06:49 PM, you wrote:<br>> >> <br>> >> > <br>> >> > To fix things or to upgrade to new versions of Mythbuntu, I just<br>> >> > rebuild my boot drive and leave my Storage directory drives alone. <br>> >> > Same thing for network attached drives on a NAS.<br>> >> <br>> >> <br>> >> > The problem is the user mythtv and group mythtv have changed<br>> >> > numbers. Mythtv group usesd to be 124 and mythtv user was 115. Now<br>> >> > on the reinstall mythtv group is now 121 and mythtv user is 123. <br>> >> <br>> >> <br>> >> > This is more of an issue for NAS drives/files since I have lots of<br>> >> > them. I can always recreate and format the storage directory drives<br>> >> > since I don't upgrade or reinstall when there are recordings on the system.<br>> >> <br>> >> <br>> >> > Is there an easy way to handle this? I tried changing the owner<br>> >> > and group on the NAS, but I got permissions issues even when doing it as SU.<br>> >> <br>> >> <br>> >> > Jim A<br>> >> <br>> >> > <br>> >> <br>> >> That is in part why I work with ldap. My UIDs and GIDs never change.<br>> >> <br>> >> But back to the issue. What kind of permission issues, root UID 0 has<br>> >> by definition all conceivable rights on a system. However ssh can be<br>> >> blocked to root. It's a setting in /etc/ssh/sshd_config<br>> >> "PermitRootLogin". You can set it to yes, no and some intermediate<br>> >> settings to for instance only allow connection through ssl keys and<br>> >> not through a password.<br>> >> It is also possible that your NAS exposes a fake root user with<br>> >> another UID then 0. In that case I'm out of my depth as I never really<br>> >> worked with a NAS.<br>> >> <br>> >> The simplest should be a:<br>> >> sudo chown -R mythtv <path><br>> >> or<br>> >> sudo chown -R mythtv.mythtv <path><br>> >> on the relevant trees on the NAS<br>> >> <br>> <br>> <br>> > When I try sudo chown mythtv:mythtv /media/media/TV_Shows/*<br>> > I get permission denied. The mount in etc/fstab for the NAS is:<br>> <br>> <br>> > //192.168.0.250/media /media/media cifs<br>> > user=mythtv,password=myth_password 0 0 <br>> <br>> <br>> > I had to give the user mythtv a password for this to work<br>> > originally. The network drive mounts and I can do stuff on the<br>> > drive as my user which is UID 1000 on both systems. mythtv user is different now.<br>> <br>> <br>> > Jim A<br>> <br>> <br>> I now see you have mounted it as cifs, so it goes through sambas<br>> rights system. That could be the problem. That's also why you need the<br>> password. Hopefully you also have it as nfs-mount enabled on the NAS.<br>> The command I gave earlier then hopefully will mount it as nfs.<br>> Else I think you have to see if you can export (temporarily) as nfs,<br>> preferably with another name, and mount it as root.<br>> <br>> </div><div>Thanks, I easily enabled NFS on the NAS4Free system and mounted it as root and could fix all the permissions and ownerships.</div><div><br></div><div>The mount I used for those interested was:</div><div><br></div><div>sudo mount 192.168.0.250:/mnt/media as /media/media</div><div><br></div><div><br></div><div>> <br>> Tot mails,<br>> Hika mailto:hikavdh@gmail.com<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>> <br>> _______________________________________________<br>> mythtv-users mailing list<br>> mythtv-users@mythtv.org<br>> http://lists.mythtv.org/mailman/listinfo/mythtv-users<br>> http://wiki.mythtv.org/Mailing_List_etiquette<br>> MythTV Forums: https://forum.mythtv.org<br></div> </div></body>
</html>