LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rkhunter to check hashes of files in directory (https://www.linuxquestions.org/questions/linux-software-2/rkhunter-to-check-hashes-of-files-in-directory-896253/)

crts 08-08-2011 04:46 PM

rkhunter to check hashes of files in directory
 
Hi,

I wanted to write a script which would check the hash-sums of all files within a certain directory and compare them with previous hashes. I remembered that rkhunter does this by default for certain files. So my idea was to use rkhunter for this task. I copied the default configuration file and made some modifications to it. However, I just cannot get it to work. It always just computes the hashes for files in /bin /usr/bin etc. But I would like to also check the files, e.g. in /boot.

Is there any way to configure rkhunter to compute and store hashes for *normal* (i.e. non-executable) files?

kbp 08-08-2011 06:41 PM

Maybe you could try aide .. it's designed for the job.

crts 08-09-2011 12:33 AM

@kbp: Thanks for the hint. Looks like aide is a good alternative to what I am trying to do.


All times are GMT -5. The time now is 02:21 PM.