Description of problem: Error: Invalid display - keyword cannot be found: Display line: display --to SCREEN+LOG --type PLAIN --result FOUND --color GREEN --log-indent 2 --screen-indent 4 SYSTEM_CONFIGS_SYSLOG_SYSTEMD_JOURNAL Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. /etc/cron.daily/rkhunter 2. 3. Reproducible: Steps to Reproduce:
Assignee: bugsquad => remcoKeywords: (none) => Triaged
I also see this. It started after the recent updates to the file and lib64magic1 packages: file-5.16-1.1.mga4.x86_64 lib64magic1-5.16-1.1.mga4.x86_64 Those were updated on my system on Feb 23 On Feb 24, rkhunter, as expected, issued a warning about the change in inode for /usr/bin/file On Feb 25, rkhunter repeated the identical warning about the change in inode, and reported the error message quoted above On subsequent days it has repeated that error message.
James, you may want to rebuild/update the database for some of your errors. rkhunter --propupd PS: rkhunter-1.4.2.tar.gz has been released with several fixes. http://rkhunter.cvs.sourceforge.net/viewvc/rkhunter/rkhunter/files/CHANGELOG I suggest using the new rkhunter.d feature and create /etc/rkhunter.d/mageia.conf with all the Mageia changes that were done to /etc/rkhunter.conf
I did a mkdir /etc/rkhunter.d/, pulled the Mageia changes from /etc/rkhunter.conf into /etc/rkhunter.d/mageia.conf, urpme rkhunter, untared rkhunter-1.4.2.tar.gz ran ./installer.sh --layout /usr --install ran rkhunter --propupd ; rkhunter --skip-keypress -C then ran a copy of /etc/cron.daily/rkunter and it ran without the display error. packager will need to decide where the SCRIPTDIR should point since the tar file is arch dependent or do what I did, and removed the SCRIPTDIR from the mageia.conf file. See attachment.
Created attachment 5057 [details] /etc/rkhunter.d/mageia.conf
Oops, forgot /etc/cron.daily/rkunter might/will need modification to /usr/bin/rkhunter unless package manager wants to override default install location.
Will 1.4.2 be packaged for mga4?
CC: (none) => g.merigo
Verified the original bug does not exists in release rkhunter-1.4.2 which needs to be updated in core release.
Summary: 4: rkhunter Error: Invalid display keyword --to SCREEN+LOG => rkhunter Error: Invalid display keyword --to SCREEN+LOGWhiteboard: (none) => MGA5TOO MGA4TOOVersion: 4 => Cauldron
I updated my home server system to MGA5, and rkhunter is still at version 1.4.0, so the error is still current. Any idea if rkhunter will be upgraded to 1.4.2?
My workaround is downloading the tar archive into my download directory, remove rkhunter rpm, add conf change files, and install rkhunter. Created the suggested /etc/rkhunter.d/mageia.conf file from my attachment, https://bugs.mageia.org/attachment.cgi?id=5057 then installed my changes to /etc/rkhunter.d/my__rkhunter.conf Code snippet from my install_rkhunter script follows: function install_tar_file () { _tar_fn=$(ls $_dl_dir/*rkhunter* 2> /dev/null | sort -V | tail -1) cd /root/tmp cp $_tar_fn . tar xvfz rkhunter*.tar.gz cd rkhunter* ./installer.sh --layout /usr --install } # end install_tar_file
Nice hack but already know how to operate rkhunter from "source" (it's a shell script), but it beats the whole purpose of having an rpm ready to install on every mageia box. Maybe if I have time I'll try to package it by myself but not having that much time it will take a long time...
CC: (none) => javier_diaz
In mageia 5 it also fails, rpm version: rkhunter-1.4.0-7.mga5
Javier, I know, see comment #8.
Although the "Invalid display - keyword cannot be found" has been fixed, I am leaving this bug open so that a suggested mageia.conf will be created for release 1.4.2 See /etc/rkhunter.d/mageia.conf attachment.
Source RPM: rkhunter-1.4.0-5.mga4.src.rpm => rkhunter-1.4.0-9.mga6.src.rpmKeywords: (none) => 6sta2
another bug report has mageia.conf attachment.
Status: NEW => RESOLVEDResolution: (none) => FIXED
Hello, I have just upgraded to mageia 6 and it still fails, rpm 'rkhunter-1.4.0-10.mga6': /etc/cron.daily/rkhunter: Error: Invalid display - keyword cannot be found: Display line: display --to SCREEN+LOG --type PLAIN --result FOUND --color GREEN --log-indent 2 --screen-indent 4 SYSTEM_CONFIGS_SYSLOG_SYSTEMD_JOURNAL Is it necessary to make any configuration change to correct it? There is no /etc/rkhunter.d/mageia.conf file, only /etc/rkhunter.conf
I tried to use the proposed mageia.conf file but when I run rkhunter the same way the cronjob I get the same message: # /usr/sbin/rkhunter --update --rwo --tmpdir /var/lib/rkhunter/tmp --dbdir /var/lib/rkhunter/db --cronjob --logfile /var/log/rkhunter-cronjob.log --appendlog Error: Invalid display - keyword cannot be found: Display line: display --to SCREEN+LOG --type PLAIN --result FOUND --color GREEN --log-indent 2 --screen-indent 4 SYSTEM_CONFIGS_SYSLOG_SYSTEMD_JOURNAL Warning: Suspicious file types found in /dev: /dev/shm/squid-cf__readers.shm: data /dev/shm/squid-cf__queues.shm: data /dev/shm/squid-cf__metadata.shm: data Note: I'm not on mga6 but I see the rkhunter version is still the same. So proposed solution won't work. I don't know why this bug is marked as FIXED.
Addendum: of course the squid files are another kind of configuration error entirely, I'm just speaking about the Invalid display error.
If it doesn't work, I think this bug should be reopened
Hello, I reopen this bug: it is still failing
Status: RESOLVED => UNCONFIRMEDEver confirmed: 1 => 0Resolution: FIXED => (none)
We have now rkhunter-1.4.6-3.mga8. According comment 7 the problem was fixed in rkhunter-1.4.2 Closing as FIXED.
Resolution: (none) => FIXEDStatus: UNCONFIRMED => RESOLVED