I am receiving the following errors from rkhunter. I have recently upgraded my server from lenny to squeeze and this may have caused the problem. How do I fix this or hide the error messages?
Warning: The modules file '/proc/modules' is missing.
Warning: Suspicious file types found in /dev:
/dev/shm/network/ifstate: ASCII text
Warning: Hidden directory found: /dev/.udev
I also not get a second email: Please inspect this machine, because it may be infected.
Please can anybody point me in the right direction to find the cause of these errors?
First of all, they are only warnings, not errors.
rkhunter
is trying to check the kernel modules, but it cannot because the file/proc/modules
doesn't exist. You can disable the test by changing the below line:to:
About the second warning:
If
/dev/shm/network/ifstate
is a known good file, you can white-list it by adding the following line in/etc/rkhunter.conf
:About the third line:
Similar to above, to avoid this warning, you can reconfigure
rkhunter
to ignore this directory: