[mythtv-users] Changing permissions of recorded files.
Chris Capon
ttabyss at gmail.com
Sat Oct 16 17:37:58 UTC 2010
On 2010-10-15 20:41, Michael T. Dean wrote:
> On 10/15/2010 08:32 PM, Chris Capon wrote:
>> Is there a way to change what permissions the mythtv-backend puts on
>> recording files it creates?
>>
>> Currently, they are only read/writable by the mythtv user and I'd like
>> them to be readable by the mythtv group as well.
>>
>> ab at cde:/hd/video$ l -d mythtv
>> drwxrwxrwx 2 mythtv mythtv 4096 Oct 15 17:10 mythtv/
>> ab at cde:/hd/video$ l mythtv
>> total 8132112
>> -rw------- 1 mythtv mythtv 8319043588 Oct 15 17:07
>> 2091_20101015160000.mpg
>> -rw-rw-rw- 1 mythtv mythtv 91987 Oct 15 17:00
>> 2091_20101015160000.mpg.png
>> ab at cde:/hd/video$
>>
>> Much thanks.
>
> Set your umask appropriately (like 0022 or 0002) in the environment
> running mythbackend.
>
> Mike
Ok, that worked. Thanks!
For anyone who is doing this under Debian, the place to made the change is:
/etc/default/mythtv-backend
add this line if you just want to add Group Read permissions:
umask 0007
or to add Global Read permissions:
umask 0000
Thanks again!
More information about the mythtv-users
mailing list