Category Archives: Linux

Failed to obtain lock on file /var/run/nagios.pid: Permission denied

This error is caused by Nagios not having access to the folder where it should save it`s PID file. You can change the path for the PID file (and then also fixing the issue) by editing your nagios.conf (usually /etc/nagios/nagios.conf). … Continue reading

Posted in Linux, Software | Tagged , , | 2 Comments

Howto: Increase disk space in a mdadm raid

I currently have a Ubuntu Linux server running two mdadm RAID`s. One of the RAID sets is set up using 6 x 500 GB SATA drives. Now i have purchased 6 x 1500 GB SATA drives that will replace the … Continue reading

Posted in Linux, Ubuntu | Tagged , | 2 Comments

Locate duplicate files under Ubuntu (And some ranting)

Edit: Post updated due to obvious user error Looking for a program to find dublicate files? Then fdupe saves the day! root@bais:/home/samba/raid0# apt-cache search fdupe fdupes – identifies duplicate files within given directories By the way, how come the apt … Continue reading

Posted in Linux, Ubuntu | 3 Comments

How to get your mdadm RAID`s back after OS crash or a reinstall

If all your disks are connected, simply try a: mdadm –assemble –scan This should find and activate all your RAID systems

Posted in Linux | Tagged , , | 3 Comments

How to reset MySQL root password

To reset the MySQL root password, do the following: USE DATABASE mysql; SET PASSWORD FOR root@localhost=PASSWORD(‘yournewpassword’); FLUSH PRIVILEGES; And voila! You have changed your password. PS: If you have a “problem” with beeing able to login to MySQL without using … Continue reading

Posted in Linux | Tagged , , | Leave a comment

(scam?) ” OpenSSH <= 5.2 zero day exploit code - 48 hours until it is publicly released”

Aparantly, somebody is willing to release a OpenSSH exploit in less than 48 hours. I hope (and guess) that it is a joke, but if not, the results can become “interesting”. Read more @: http://lists.grok.org.uk/pipermail/full-disclosure/2009-July/069752.html

Posted in Linux | Tagged , | Leave a comment

Clear the Postfix mail queue

If you for some reasont want to clear the Postfix mail queue, you could do a: postsuper -d ALL Or if you just want to remove deferred mail: postsuper -d ALL deferred

Posted in Linux | Tagged , | 1 Comment

Getting Groupwise to work on Ubuntu 64bit (9.04)

Just a quick post on what i did to get Groupwise up and running on Ubuntu 64bit: 1) Installed a 32bit virtual Ubuntu machine, and converted the Groupwise installer to a .deb package with “alien -c filename”. 2) Moved the … Continue reading

Posted in Software, Ubuntu | Tagged , , | Leave a comment

Cron commands not working when outputting to stderr(2>&1)

The error: username@host:/home/foo> fetchmail -f /opt/rt-fetchmail/fetchmail 2>&1 /dev/null Enter password for username@/dev/null: Solution: Change the cron entry / command to the following: fetchmail -f /opt/rt-fetchmail/fetchmail > /dev/null 2>&1 This will stop -all- output from appearing.

Posted in Linux | Tagged , , | Leave a comment

Fix for the “Out of memory! Callback called exit.” error in Request Tracker (RT)

When RT is upgraded, users can experience WSOD(White Screen Of Death), all the log will say is: “Out of memory! Callback called exit.”. Not so informative eh? The solution is pretty simple, run this query in the database: “ALTER TABLE … Continue reading

Posted in Linux | Tagged , , | 1 Comment