[mythtv-users] png file permissions?
Michael T. Dean
mtdean at thirdcontact.com
Thu May 1 14:48:52 UTC 2008
On 05/01/2008 04:40 AM, Udo van den Heuvel wrote:
> Just noticed that the pngs for the recoreded mpegs are mode 666:
>
> -rw-rw-rw- 1 root root 108243 2008-05-01 10:26 3_20080501100400.mpg.png
> -rw-r--r-- 1 root root 484224268 2008-05-01 10:26 3_20080501100400.mpg
>
> The mpg has the more reasonable permission.
> Is this a setting I missed?
> Or is this a feature?
Because some people have broken system configurations*, we needed to do
a workaround that allows the preview files to be modified from all
programs needing access (mythbackend, mythfrontend--which may be running
as different users on the same host--as well as client scripts, like
mythrename.pl, /and/ all other Myth programs on other systems in the
event of a network filesystem).
http://www.gossamer-threads.com/lists/mythtv/commits/192973#192973
http://www.gossamer-threads.com/lists/mythtv/commits/193967#193967
http://www.gossamer-threads.com/lists/mythtv/dev/191628#191628
Oh, and BTW, just doing a simple search of "png permissions" (no quotes)
on the searchable archive (
http://www.gossamer-threads.com/lists/mythtv/ ) gives the above ticket
(which includes a link to the -dev list info) as the second result.
Hint, hint.
Oh, and just to be thorough:
http://www.gossamer-threads.com/lists/mythtv/commits/320516#320516
If you can come up with a good way (for any one system) to detect
whether or not the user's system/configuration is broken, I'll implement
it in #4860. Please keep all discussion on the list (none on the bug
tracking database).
Mike
*Before getting to upset that other people's broken configurations make
you have to run with "less than ideal" permissions, yours is actually
broken, too. Since you run mythbackend as root, and since a proper NFS
configuration will enable root_squash, if you had your recordings
directory exported to your combined frontend/backend, the frontend would
be unable to update the PNG images when it's supposed to. Similarly, if
you're running mythbackend as root and mythfrontend as mythtv (or other)
on the same host, mythfrontend would be unable to update the preview.
Whether you actually have a configuration that causes the brokenness to
surface is another question.
More information about the mythtv-users
mailing list