MySQL: mysql is not running but lock exists

A MySQL crash on Red Hat system resulted with:/etc/init.d/mysql statuscoming back with: mysql is not running but lock existsSolved by removing the lock file: rm /var/lock/subsys/mysql If this happens again it may also be necessary to remove the pid file... » More

Password-less SSH for Rsync from Solaris

This short article will demonstrate by example password-less ssh from a Solaris 8 box which will backup the contents of a linux box using rsync.In the example there are 2 users involved and 2 machines involved:User: bak2solaris Machine: mylinuxbox... » More

SpamAssassin: Overriding default scores

If desired the default scores for rules in spamassassin (located in /usr/share/spamassassin/50_scores.cf) can be changed by setting the scores either in /etc/mail/spamassassin/local.cf or another .cf file in the directory. For example, my_scores.cf could... » More

First Aide for Intrusion Detection

I was considering installing tripwire on a CentOS 5.1 install but I happened upon an article about 'aide' which also notifies the system admin about changes to core files (and thus possible intrusions) Of course any genuine newly installed... » More

Spamassassin and sa-update

Sa-update replaces Rules-Du-Jour providing fresh spam rules to spamassassin in a similar way that freshclam provides viri updates to ClamAV.Presumably Spamassassin is installed but if it isn't: yum install spamassassin*This will install the main... » More

PHP 5.2.5 Plesk Horde Include Error

A recent upgrade to PHP 5.2.5 caused a problem with Plesk/Horde webmail. Specifically:Warning: require_once(Horde/String.php) : failed to open stream: No such file or directory in /usr/share/psa-horde/lib/Horde/Browser.php on line 4 Fatal error:... » More

Password-less SSH in 5 minutes

Connecting to remote servers using SSH is very common in systemadministration and involves entering the command : sshuser@remotehostname and the corresponding password.It is possible to use public keys with SSH to allow the remote host to accept SSH... » More

Aptana for Linux Web Development

Aptana is an Eclipse plug-in/perspective aimed at web development including support for Ajax and PHP. With Eclipsed installed, Aptana can be added by:Open EclipseChoose Help > Software Updates > Find and Install... In the dialog enter... » More

ProFTPd Port Restriction

Data ports are allocated to FTP clients on connection so it is difficult to know which port an FTP user might be using when they next connect. To narrow it down a little (for a low usage FTP service) I restricted the port range in... » More

Nagios NRPE Plugin on CentOS

Nagios is is a useful tool for monitoring many servers and their services. At a glance (or via email) you can see which services/hosts are experiencing problems.Monitoring public services such as HTTP, FTP, LDAP, SSH are relatively easy but to go a... » More