Category: Reliable Penguin

Fix vi On Ubuntu

Some times I’ll run into an Ubuntu install where “vi” does not work as expected. For example the backspace and arrow keys will in insert mode will add characters. Turns out Ubuntu installs vim-tiny by default which is a stripped down (and historically compatible) version of vi. The solution is just to install the full version:

Read More »

AIDE

AIDE or Advanced Intrusion Detection Environment is a great tool for host based system integrity monitoring. AIDE will maintain a database of checksums on the content and attributes of critical system files. If these files change then a notification email will be sent. Here’s the homepage for the AIDE project: http://aide.sourceforge.net/ Installing AIDE is easy since it’s available via yum:

Edit the configuration file at /etc/aide.conf and make the following changes: Change “verbose” from 5 to 0. Change rule for “/var/log/lastlog” from “LSPP” to “LOG” To setup just do:

Also add a daily cronjob that runs a check operation:

This job will send notification email to “root”. Make sure “root” is aliased to an appropriate address so the notifications will actually be received. The procedure when you receive a notification should be to: Review the changed files and confirm that the changes are legitimate. Update the aide

Read More »

Malware Scanner

Here’s a good tool for finding malware in a site: http://www.rfxn.com/projects/linux-malware-detect/ It’s easy to install as follows: Download and unpack.

Install

Configure email alerts. Edit /usr/local/maldetect/conf.maldet and change the following parameters:

Read More »

SED – Search & Replace

Always handy to have sed in your bag of tricks:

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.