[mythtv-users] Storage Permission Problems

Joseph Fry joe at thefrys.com
Mon Aug 19 22:03:02 UTC 2013


>> Umm.. are you just mounting a local drive?   Then you just need to set
>> the permissions on the mount point.
>>
>> Once it's mounted, you may need to reset ownership on the files with
>> chown if your UID's and GID's are different than they were before.

> I have the mount point permissions set to mythtv for user and group. But
> when the partition gets mounted it goes to the mystery user:group.

Watch the top posting... corrected.

So, what that tells me is that the mythtv uid and gid on the new
system is different than it was on the old system.

In Linux... when you assign a user or group permissions... it doesn't
assign those permissions to a username or group name.. it assigns them
to an ID#.  This allows you to safely change the name of the
user/group without impacting their ability to access their data.

The problem with this approach, is that the UID's may not match
between systems, even though the user name is the same.

For example say you have a linux box with users dick (uid 100) and
jane (101).  You replace the computer and recreate the user
accounts... but this time dick has uid 101, and jane has uid 100; they
swapped uid's.  If you pull the data drive from the old computer and
put it into the new one... they will have access to the other users'
data, but not their own.

To correct this you can either; A) change their UID's to the old
value, or B) change the ownership on the files/folder to match the new
UID's.

It's hard to say which is easier.  In my experience the mythtv user
only has access to his home directory, so you could change the mythtv
uid and gid to the old value... then just do a "chown -r mythtv:mythtv
/home/mythtv".  Or, if all of your data on the data drive is owned by
the mythtv user... just do a "chown -r mythtv:mythtv /mnt/datadrive"


More information about the mythtv-users mailing list