On Mon, 2020-05-11 at 19:56 +0000, Bruce Cantrall wrote:
> I sometime want to send special email with only part of the log file as shell
> script from cron.  I use egrep to get the parts I want in the email so it is
> formatted to my liking:
>
...
> -----------
> Does anyone know how to whitelist a file with a SPACE in it?  Double-quotes
> did not seem to work in conf file with SCRIPTWHITELIST.
> [10:23:37]   /whatever/License<SP>Information.rtf [ Warning ]
> [10:23:37] Warning: No hash value found for file
> '/whatever/License<SP>Information.rtf ' in the 'rkhunter.dat' file.
>
> $ grep License /usr/local/etc/rkhunter.conf
> SCRIPTWHITELIST=/whatever/License Information.rtf
>
Hi,

The SCRIPTWHITELIST option above looks fine. It is treated correctly as the
warning shows it recognizes the space (made visible by '<SP>').

Did you tell rkhunter to actually monitor the file
(using USER_FILEPROP_FILES_DIRS)? The 'no hash value' message seems to indicate
that 'rkhunter --propupd' has not been run (once it has been told to monitor
the file).


John.

--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>

This email and any files with it are confidential and intended solely for the 
use of the recipient to whom it is addressed. If you are not the intended 
recipient then copying, distribution or other use of the information contained 
is strictly prohibited and you should not rely on it. If you have received this 
email in error please let the sender know immediately and delete it from your 
system(s). Internet emails are not necessarily secure. While we take every 
care, University of Plymouth accepts no responsibility for viruses and it is 
your responsibility to scan emails and their attachments. University of 
Plymouth does not accept responsibility for any changes made after it was sent. 
Nothing in this email or its attachments constitutes an order for goods or 
services unless accompanied by an official order form.

_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to