[mythtv] [PATCH] Add option to mythfilldatabase to change user

William Uther willu.mailingLists at cse.unsw.edu.au
Sat Apr 30 00:17:30 UTC 2005

   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 
   - the grabber script is no longer being run as root


Will         :-}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: useroption.diff
Type: application/text
Size: 2534 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050430/d7e584cf/useroption.bin
-------------- next part --------------

Dr William Uther                           National ICT Australia
Phone: +61 2 9385 6357               Computer Science and Engineering
Email: willu at cse.unsw.edu.au          University of New South Wales
Web: http://www.cse.unsw.edu.au/~willu/     Sydney, Australia

More information about the mythtv-dev mailing list