[mythtv-users] Mythexport output files wrong permissions
Hika van den Hoven
hikavdh at gmail.com
Fri May 6 11:11:57 UTC 2016
Hoi John,
Friday, May 6, 2016, 12:52:21 PM, you wrote:
> Hi,
> I have just upgraded my combined BE/FE from Ubuntu 12.04 to 14.04
> (I realise I am behind the times!) Before the change, files output
> from mythexport had permissions 666 (-rw-rw-rw-). Files output
> since the upgrade have permissions 600 (-rw-------). This means
> that the apache process that serves the output files, via an RSS
> feed, cannot read the files and so they cannot be downloaded.
>
> I was wondering if anyone else was having this problem, and knew how to solve it?
>
>
> By adding debugging messages to mythexport-daemon, as far as I
> can see, the umask changes after startDaemon, which calls
> Proc::Daemon::Init. According to the documentation for the latter,
> changing the umask is normal behaviour. But as I say, I never had this problem with 12.04.
>
> Any ideas?
>
> John
>
>
I don't know about cause, but you could solve it by wrapping the
command in a small script:
#!/bin/bash
<your mythexport command>
chmod 0666 <your export filename>
This assuming the file is owned by the user running it. Else you have
to use sudo and arrange for the right sudo rights.
Tot mails,
Hika mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
More information about the mythtv-users
mailing list