[mythtv-users] how to disable the delete recording option ?

Tony Lill ajlill at ajlc.waterloo.on.ca
Wed Apr 4 22:11:01 UTC 2007


"Ross Campbell" <ross.campbell at gmail.com> writes:

> On 4/3/07, Pietralla, Siegfried P <siegfried.pietralla at eds.com> wrote:
>> what ideas do people have to disable delete functionality in mythtv.
>
> nuvexport "nodelete" recordings and put them into mythvideo?
>
> I wouldn't mind an additional attribute for recordings to say "do not
> delete" - I was thinking simple file permissions could be used, but
> since many run their frontends as root... well... that won't work.

chattr +i filename

can't be removed, or renamed, even by root. Good on any filesytem that
supports extended POSIX attributes. You may need to install the 'attr'
package to get the commands.

I'm not sure if it's still true, but I think that if the file can't be
removed, the database entries are left alone. That was causing a
problem a while back where you couldn't delete a program if the file
got removed, so it might have been fixed.

--
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/ ----------------

Understatement of the century:
"Hello everybody out there using minix - I'm doing a (free) operating
 system (just a hobby, won't be big and professional like gnu) for
 386(486) AT clones"

	- Linus Torvalds, August 1991



More information about the mythtv-users mailing list