[mythtv-users] Delete permissions

Michael T. Dean mtdean at thirdcontact.com
Tue Mar 1 23:33:01 UTC 2011


On 03/01/2011 04:56 PM, Stephen Bridges wrote:
> Hi all,
>
> I'm running MythTV from the Gentoo ebuilds mentioned on this list from last
> week (0.24_p20110215).  My mythfrontend and backend both run as a mythtv user,
> and have permission to read and write to the storage directory I'm using.
>
> Myth has been a bit unreliable in recent weeks, and on Sunday I found Myth
> couldn't play live TV at all and investigated and discovered that the disc was
> full, so no ringbuffer could be created.  Deletion was set to mark as
> autoexpire, and then perform an autoexpire when space is required.
> It turns out that whenever I deleted any file in a frontend (via the
> autoexpire list in this case), this was printed in the backend log:
>
> 2011-02-27 20:15:55.151 Error deleting '/pub/myth/11305_20110208205700.mpg'
> could not open
>                          eno: Permission denied (13)
> 2011-02-27 20:15:55.153 Delete Error '/pub/myth/11305_20110208205700.mpg'
>                          eno: Permission denied (13)
> 2011-02-27 20:15:55.154 Error deleting file:
> /pub/myth/11305_20110208205700.mpg. Keeping metadata in database.
>
> The frontend would show that the file was deleted, but actually it was still
> on the filesystem.  I don't know what the problem is, the mythbackend is
> marked by ps as running as the user 'mythtv' which has full delete privileges
> for that directory.
>
> I disabled the autoexpire behaviour, so a delete performs a delete, and not an
> autoexpire, and I've not had any more messages like this in the log during
> deletion.
>
> Is this a bug or have I done something wrong?  I can't see what it is if so.

Please post the output of the following 3 commands:

ls -ld /pub{,/myth{,11305_20110208205700.mpg}}
df -k /pub/myth
mount

Thanks,
Mike


More information about the mythtv-users mailing list