[mythtv-users] Recordings on smb nas and MythWeb
nick.rout at gmail.com
Tue Aug 12 21:55:45 UTC 2008
On Wed, Aug 13, 2008 at 9:50 AM, Jonas Urth Olsen <jonasu at gmail.com> wrote:
> Nick Rout wrote:
>> On Wed, Aug 13, 2008 at 9:30 AM, Jonas Urth Olsen <jonasu at gmail.com> wrote:
>>> I have just moved all my recordings to a nas drive (Maxtor Central
>>> Axis). I have some problems now. MythWeb won't sream, show the thumbnail
>>> or let me download the recordings. everything else works, including my
>>> remote frontend. The entry for mounting the drive looks like this in
>>> //10.0.0.200/Recordings /media/recordings cifs
>>> The log files for mythtvbackend or Apache doesn't show anything strange.
>>> Apache returns:
>>> "Can't read 1003_20080810233500.mpg: Permission denied"
>>> to the browser, then I try to download a recording.
>>> I have a feeling that it is a problem with file permissions. The
>>> recordings are world writable. Im not sure Apache likes that. But I
>>> can't find the options for cifs.mount to set file permissions.
>>> I run Ubuntu 7.10 and MythTv 0.21 from the backport repository.
>>> Is there anybody that can give me a hint?
>> I don't know the answer to your question, but you shouldn't use
>> password= in fstab. Use credentials=/root/credentials and make
>> /root/credentials readable and writable only by root. Much more
>> secure. fstab is world readable and therefore so is your password :)
> You are right, but as i am the only one with login to the machine, and
> lazy as a am, i went for the easy way. I'll change it some day...
>> Thinking on, the answer may lie in the permissions of
>> /media/recordings BEFORE the NAS is mounted. Every time I set
>> something like this up I futz around for a while before I get it
> Yep. checket that. su to www-data (user running Apache), and I have no
> problems listing the recordings files.
its one thing to list them, another to read them (listing them is to
do with the permissions on the directory, reading the contents of the
file is to do with permissions of the file itself, as well as (I
think) the directory permissions for the path to the file.)
More information about the mythtv-users