[mythtv-users] Delete permissions

Stephen Bridges widget at stdin.co.uk
Tue Mar 1 21:56:49 UTC 2011


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.

Thanks,

Widget.


More information about the mythtv-users mailing list