When I first ran rkhunter on my Ubuntu 16.04 VPS, I noticed an error with lsattr when checking for prerequisites:
Warning: Checking for prerequisites [ Warning ]
Unable to find 'lsattr' command - all file immutable-bit checks will be skipped.
Because I could not find a solution online, I tried 'apt-get purge e2fslibs' to remove the package that contains the lsattr command, and reinstalled it afterwards. But still, running lsattr returns
lsattr: command not found
and 'whereis' returns
lsattr:
It seems this has to do with the virtualisation environment used for my VPS (Virtuozzo), because commands such as lsattr are missing. The package containing lsattr is e2fslibs and because that is already established, it is not a duplicate of the questions "How do I find the package that provides a file?"
My question: How can I tell rkhunter to ignore lsattr so that it is excluded from the scan for prerequisites? Because it cannot be present on my system, is there any way to "whitelist" it?
echo "$PATH"
andls -l /usr/bin/lsattr
? – David Foerster Mar 21 '17 at 11:03echo "$PATH"
: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games`
– Andy Mar 21 '17 at 14:06ls -l /usr/bin/lsattr
: ls: cannot access '/usr/bin/lsattr': No such file or directory