[mythtv] mythfilldatabase environment requirements

Alan Calvert cal at graggrag.com
Wed Oct 3 15:34:58 UTC 2007


Robin Gilks wrote:
>> On Wednesday 03 October 2007 01:26:21 Robin Gilks wrote:
>>> I'm somewhat stuck with using tv_grab_nz-py in conjunction with
>>> mythfilldatabase.
>>>
>>> tv_grab_nz-py works great from the command line but running it from
>>> mythbackend as a scheduled mythfilldatabase activity causes problems
>>> which
>>> may be related to my environment. If I can get some idea of the
>>> expectations of the grabber/backend combo then perhaps I can fix it!!
>>>
>>> I run the backend as the user 'mythtv'. This user has home directory of
>>> /home/mythtv and a shell of /bin/false so as to prevent login attempts
>>> on
>>> my ssh port.
>> There are other ways to prevent ssh logins for a particular user e.g. the
>> DenyUsers configuration option or disallowing password logins. Maybe it
>> would
>> be easier to do something different to secure the machine?
> 
> I got bogged down in the PAM auth stuff so I didn't look any further. Not
> having a shell is a quick fix since I only want to run the backend as that
> user, not have that user logged in!
> 
> I'm not sure what get inherited from the root user that runs the startup
> scripts (especially at the point at which mythbackend gets started), so it
> could be that /etc/profile doesn't get loaded in which case a whole lump
> of environment may be missing.

eg, 
#!/bin/bash
export QTDIR=xxx
export MYTHTVDIR=yyy
export LD_LIBRARY_PATH=zzz
su -p -c "/usr/local/mythtv/bin/mythfilldatabase" mythtv
 


More information about the mythtv-dev mailing list