Wording of /etc/default/rkhunter

Bug #1011151 reported by Hungerburg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rkhunter (Ubuntu)
Fix Released
Undecided
François Marier

Bug Description

The defaults file states that "true" is the default of "CRON_DAILY_RUN". I read that as, if I leave the setting alone, ie the empty string, it will evaluate to "true". Instead it evaluates to "false", both when called from the command line "/etc/cron.daily/rkhunter" and when called from (ana)cron. Only when explicitly set to "true" in the defaults file, the cron job will run.

I propose to change the wording of the comments in "/etc/default/rkhunter" to state the need to set "CRON_DAILY_RUN" to "true" to have it run from cron.

Revision history for this message
Thomas Leavitt (u-tho4as-f) wrote :

I had this same issue. I installed it, looked at the content of this file, and assumed that "default" meant "default". I was only able to fix the situation after changing "CRON_DAILY_RUN" to "true" as described, and I also set "CRON_DB_UPDATE" to "true". This is a bug, as no rational person with any experience would read this as requiring "true" to be added for the cron job to run. There's a discussion about this here as well. Wasted more time than makes me happy before I figured this out.

http://askubuntu.com/questions/382992/rkhunter-sends-no-email

Revision history for this message
François Marier (fmarier) wrote :

This is fixed in the package I just pushed to Debian unstable (1.4.2-1).

Changed in rkhunter (Ubuntu):
status: New → Fix Committed
assignee: nobody → François Marier (fmarier)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rkhunter - 1.4.2-1

---------------
rkhunter (1.4.2-1) unstable; urgency=medium

  * Make myself the uploader
  * Acknowledge my own NMUs (closes: #765351, #765912, #768396, #771477)

  * Recommend both unhide and unhide.rb (closes: #765901)
  * Recommend iproute2 instead of iproute (closes: #753717)
  * Drop recommends for test browsers (closes: #710582)
  * Promote lsof to depends and mailx to recommends
  * Drop tripwire and libdigest-whirlpool-perl from suggests

  * Better default configuration (closes: #765898)
  * Comment out lwp-request in the config file (closes: #773974, #783069)
  * Fix config entries for etckeeper (closes: #779702)
  * Fix NONE/none and ALL/all mess in config file (closes: #780903)
  * Suggest "ALLOWHIDDENDIR=/dev/.lxc" in config file (closes: #762877)

  * Use $(hostname) instead of $(hostname -f) in emails (LP: #973490)
  * Fix default values of cron vars in /etc/default/rkhunter (LP: #1011151)
  * Remove trailing whitespace in /etc/default/rkhunter (closes: #771620)

  * Bump Standards-Version up to 3.9.6
  * Bump debhelper compatibility to 9
  * Update lintian overrides to cover all new files
  * Use canonical VCS URLs
  * Fix blank line in package description
  * Update hash algorithm in package description
  * Add logcheck rules to filter out expected syslog messages

 -- Francois Marier <email address hidden> Sat, 25 Apr 2015 23:44:41 +1200

Changed in rkhunter (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.