Le mercredi 07 février 2007 à 18:21 +0100, Dr. Markus Waldeck a écrit : > Hi, > > > > This could result in an unexpected behavior. > > Can you detail? If you have an environment variable like $TMPDIR, it > > should be a temporary directory anyway. Or maybe I don't understand the > > issue. > > $TMPDIR is $HOME/tmp. > > rkhunter could be started via cron. > /etc/cron.daily/rkhunter > /etc/cron.weekly/rkhunter > > I had a lot of problems in private and commercial unix installations > with the combination of cron and the dependency on environment variables. Then edit /etc/cron.d/rkhunter and put an empty to $TMPDIR before calling rkhunter: TMPDIR="" $RKHUNTER --cronjob [...]
This will ensure the value of TMPDIR is read from the configuration file. Obviously, this won't work when calling rkhunter manually (ie. not from a cron job) In the next Debian package upload, the /etc/default/rkhunter file will have an RK_OPT variable which will allow you to set extra parameters to be passed to daily cron job, you will then be able to set --tmpdir > So I would prefer to get the value which is defined in /etc/rkhunter.conf. The other way would be changing the TMPDIR variable name to something like RK_TMPDIR but would cause issues when upgrading from a previous release, which I would like to avoid. Cheers, Julien

