Author Archives: David Hrbáč

dovecot-0.99.11-9.EL4 – assertion failed

A few days back I’m getting this error within /var/log/maillog: file lib.c: line 37 (nearest_power): assertion failed: (num

Posted in CentOS 4.x, mailing | Leave a comment

Firefox and Thunderbird repositories for Ubuntu 10.10

sudo add-apt-repository ppa:mozillateam/firefox-stable sudo add-apt-repository ppa:mozillateam/thunderbird-stable

Posted in Uncategorized | Leave a comment

Add line to the top of files with sed

One-liner to add line at the beginning of the file(s). find mirrors-* -exec sed -i 1i’http://webmel53.vsb.cz/hrb33/el$releasever/hrb/stable/$basearch/’ {} \;

Posted in sed | Leave a comment

Ssh complains host id has been changed

There are situations when host id might be changed a few times during fast, automatic, and massive host deployment. Ssh client begins to complain on changed host id. [root@builder2 ~]# ssh webmel53 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping [...]

Posted in bash | Leave a comment

How to remove sw raid for VMware Converter to work

VMWare converter is very powerful tool to provide physical to virtual conversion. It’s quite easy to make P2V of Windows base servers. The last versions of VMware Converter claim to support P2V of Linux based servers. This is true, but there are limits. Linux server running sw raid (mdadm) is one of them. Here is [...]

Posted in vmware | 2 Comments

ESX Error 15

Esx 4.0/4.1 might be not able to boot after reboot. It happens after update installation. Esx console says: Filesystem type is ext2fs, partition type 0×83 uppermem 819200 kernel /vmlinuz ro root=UUID=ceadc074-b397-adcb-7b7604a8ab4a mem=800M quiet [Linux-bzImage, setup-0x1e00, size=0x179cdc] initrd /initrd.img   Error 15: File not found   Press any key to continue… Console snapshot: Quick look at [...]

Posted in vmware | 2 Comments

Text_CAPTCHA_Numeral bugs

There are two bugs in Text_CAPTCHA_Numeral Pear Module. Here is the patch. diff -Nuar Text_CAPTCHA_Numeral-1.3.0.ok/php-pear-Text-CAPTCHA-Numeral.xml Text_CAPTCHA_Numeral-1.3.0/php-pear-Text-CAPTCHA-Numeral.xml — Text_CAPTCHA_Numeral-1.3.0.ok/php-pear-Text-CAPTCHA-Numeral.xml 2010-10-24 04:16:40.000000000 +0200 +++ Text_CAPTCHA_Numeral-1.3.0/php-pear-Text-CAPTCHA-Numeral.xml 2010-11-18 23:15:05.000000000 +0100 @@ -43,7 +43,7 @@ <file baseinstalldir="Text" md5sum="1b16ce634831d571c8ba2e5819aaf6f9" name="tests/captchanumeral.answerisok.phpt" role="test" /> <file baseinstalldir="Text" md5sum="33de4b4f24e52c2e2ff35645cf1b4e51" name="tests/captchanumeral.firstandsecond.phpt" role="test" /> <file baseinstalldir="Text" md5sum="2f4a58be0ef33a4a112b265c0eb0b5dd" name="tests/captchanumeral.operator.phpt" role="test" /> – <file baseinstalldir="/" md5sum="554c5a360fb6efe189bdb8e73b2e2e70" name="Text/CAPTCHA/Numeral.php" role="php" /> [...]

Posted in Uncategorized | Leave a comment

DNSBL for Horde

Here we go with a small patch to implement DNSBL for Horde. I have again used PEAR package, this time it is the Net_DNSBL, and as usually CentOS package is in my repos – http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Net-DNSBL.html. The first patch is the important one. We let the attacker to log in, just to make sure he/she owns [...]

Posted in CentOS, horde, mailing, php | Leave a comment

Captcha for Horde

Here is small patch to implement captcha on Horde login page. We have implemeteded Text_CAPTCHA_Numeral. Package for Centos is here: http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html. Here is the patch. — horde-webmail-1.2.8.orig/imp/login.php 2010-10-25 17:10:05.000000000 +0200 +++ horde-webmail-1.2.8/imp/login.php 2010-11-30 17:36:27.571023703 +0100 @@ -398,6 +398,7 @@ $t->set(’user_vinfo’, Horde::callHook(’_imp_hook_vinfo’, array(’vdomain’), ‘imp’)); } $t->set(’password_tabindex’, ++$tabindex); +$t->set(’captch_tabindex’, ++$tabindex);   $t->set(’change_smtphost’, (!empty($conf[’server’][’change_smtphost’]))); if ($t->get(’change_smtphost’)) { @@ [...]

Posted in CentOS 4.x, CentOS 5.x, horde, php | Leave a comment

Hunting the root kits

Within Linux mailing list there has been post on hacked Linux box. We have recommended root kit scan. There are two important tools on Linux now, rkhunter and chkrootkit. [root@box ~]# chkrootkit ROOTDIR is `/’ Checking `amd’… not found Checking `basename’… not infected Checking `biff’… not found Checking `chfn’… not infected Checking `chsh’… not infected [...]

Posted in CentOS | Leave a comment