4

Every time that I scan my machine with rkhunter using the following command:

sudo rkhunter --checkall

After it has finished with a certain type of check it asks me:

[Press <ENTER> to continue]

And this has become rather annoying and I keep forgetting that I have run it, so hours later I realise that it has been sitting on that prompt all this time. It is also rather annoying that I have to sit staring at it the whole time while it is doing the scan so that I can press ENTER to allow it to continue.

So really that is my question, is there any way in which I can get it not to prompt me to press ENTER but just to get on with the scan so that all I have to do is to run it by executing the initial command and then come back later to check the results?


OS Information:

Description:    Ubuntu 14.10
Release:    14.10

Package Information:

rkhunter:
  Installed: 1.4.0-3
  Candidate: 1.4.0-3
  Version table:
 *** 1.4.0-3 0
        500 http://gb.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
        100 /var/lib/dpkg/status

3 Answers3

11

From man rkhunter:

--sk, --skip-keypress
      When the --check command option is used, after certain  sections
      of  tests,  the user will be prompted to press the return key in
      order to  continue.  This  option  disables  that  feature,  and
      rkhunter will run until all the tests have completed.
      If  this  option has not been given, and the user is prompted to
      press the return key, a  single  's'  character,  in  upper-  or
      lowercase,  may  be  given  followed by the return key. rkhunter
      will then continue the tests without prompting  the  user  again
      (as if this option had been given).
muru
  • 207,228
3

This works for me

echo | sudo rkhunter --checkall
A.B.
  • 92,125
-1

If you use rkhunter with cronjob, you can use the script

/usr/bin/rkhunter -c -sk

Tested by me on my Centos 7.

abu_bua
  • 11,313