[mythtv-users] Recordings on smb nas and MythWeb

Nick Rout nick.rout at gmail.com
Tue Aug 12 21:40:21 UTC 2008


On Wed, Aug 13, 2008 at 9:30 AM, Jonas Urth Olsen <jonasu at gmail.com> wrote:
> Hi
>
> 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
> /etc/fstab:
> //10.0.0.200/Recordings /media/recordings cifs
> uid=mythtv,gid=mythtv,password=XXXXX,username=mythtv
>
> 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?
>
> /Jonas

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 :)

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
right.


More information about the mythtv-users mailing list