[mythtv] [PATCH] Add option to mythfilldatabase to change user
Hamish Moffatt
hamish at cloud.net.au
Sat Apr 30 03:23:10 UTC 2005
On Sat, Apr 30, 2005 at 10:17:30AM +1000, William Uther wrote:
> I run my backend as root. I recently switched from running
> mythfilldatabase as a cron job to using the internal method... it
> stopped working. The problem was that with filldb running as root, it
> didn't have the correct home dir set, and so it couldn't find the
> tv_grab_au prefs.
>
> Attached is a patch to add an option to mythfilldatabase that allows
> it to switch users on startup. This has two effects:
> - the home dir will be set correctly when it tries to get the grabber
> prefs
> - the grabber script is no longer being run as root
Why not run the backend as non-root instead?
Hamish
--
Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>
More information about the mythtv-dev
mailing list