[mythtv-users] Is there a way to make a recording "Read-Only" -- "Protect" it from deletion

Tony Lill ajlill at ajlc.waterloo.on.ca
Thu Apr 13 02:28:00 UTC 2006


Bryan Halter <bhalter at ns1.armyofpenguins.com> writes:

> Mark Cervarich wrote:
>
>>In addition to using MythTV as a PVR, I also use it to save save music 
>>videos, clips from Letterman, SNL, etc.
>>
>>I have managed to accidentally delete a few clips because after the 
>>clip ends....by force of habit....I hit the up arrow and choose 
>>"Delete this program".  :(
>>
>>What would be cool is if there was a way to specify that certain shows 
>>should "write-protected" or "read-only".  And to delete the recording 
>>would require you to set it back to "read-write".
>>
>>Does this exist and I don't know where it is?
>>Is this on a to-do list?
>>What are some workarounds that people have come up with?
>>
>>thanks!
>>
>>mark
>>
>>  
>>
> I would think you could set the file to be read only on the filesystem.  
> Though I'm not sure if it would get zapped from the database regardless.

That won't work. If you have write permissions to the directory, you
can remove any file in it regardless of the file permissions. If you
remove write permissions to the directory, then you can't create new
files, so that doesn't work for your main recording directory.

Now, you could move them to another directory, make that directory
555, and symlink back to your recording directory. I'm not sure, but
myth may refuse to delete if from the database it can't remove the
target file.
--
Tony Lill,                         Tony.Lill at AJLC.Waterloo.ON.CA
President, A. J. Lill Consultants        fax/data (519) 650 3571
539 Grand Valley Dr., Cambridge, Ont. N3H 2S2     (519) 241 2461
--------------- http://www.ajlc.waterloo.on.ca/ ----------------
"Welcome to All Things UNIX, where if it's not UNIX, it's CRAP!"


More information about the mythtv-users mailing list