[mythtv-users] mythweb issues

Karl Hegbloom karlheg at gmail.com
Sun Mar 4 08:48:27 UTC 2007

On Sat, 2007-03-03 at 02:09 -0500, Jared Greenwald wrote:
> My recordings are placed in /myth/dvds:
> $ ls -ld /myth/dvds/
> drwxrwxr-x 3 mythtv www-data 4096 2007-02-25 08:40 /myth/dvds/ 
> $ ls -l /myth/dvds/
> total 36393288
> -rwxrwxrwx 1 mythtv   www-data 6956677120 2007-02-23 12:56
> -rwxrwxrwx 1 mythtv   www-data 4491030528 2007-02-23 13:44
> CN30NNW1.vob
> drwxrwxrwx 3 mythtv   www-data         16 2007-02-23 16:35
> -rwxrwxrwx 1 mythtv   www-data 6741344256 2007-02-23 17:37
> -rwxrwxrwx 1 mythtv   www-data      30331 2007-02-26 10:02 mtd.log
> ...

Why are those all marked executable and write-able by "other"?  I think
I would cd into that directory and run:

 find -type f -exec chmod u=rw,go=r \{\} \;
 find -type d -exec chmod u=rwx,go=rx \{\} \;

... and also perhaps:

 chmod g+s .

... so that new files there are owned by group "www-data".  You may also
need to set the 'umask' for the "mythtv" user such that the files
created are group readable...  The 'umask' is probably already set that
way, but check it after ripping the next DVD to be sure.

> I put in a link from /usr/share/mythtv/mythweb/data/videos
> -> /myth/dvds 
> I can see all of the video information in the mythweb video screen,
> but when I try click on one of the movies to play it in a browser, I
> get a permission denied error message.

Please post one of the failing URL's that MythWeb presents.  (In
Firefox, you can right-click on the link and select copy location to put
the URL into the clipboard for pasting into email.)

> Has anyone else run into this previously?  Am I missing something? 

I think it is related to directory/file permissions and/or your Apache
configuration.  Make sure that the URL points to a file system location
that Apache knows about and that the per directory and per location
configuration in Apache are right for that.  Perhaps you need it to
"Options FollowSymlinks"?

Karl Hegbloom <karlheg at gmail.com>

More information about the mythtv-users mailing list