Top Nav

Archive | Uncategorized

vsftpd long username bug

Here’s a patched source RPM for the vsftpd package included with RHEL5. It fixes this bug:

The bug limits user names to 32 characters. The patch raises the limit to 128 characters.

To build and install do:

You can download the patched source file here:


Yum : Howto download source packages

First get the yum-utils package if you don’t already have it:

Next just do:

where mypkg is the package that you want source for.


Encode/decode SMTP AUTH username/passwords

When using SMTP AUTH, the username and password are base64 encoded. Here’s a snip of perl that will encode a string:

This will produce something like this:

And here’s the decode:

which of course yields:


Change ZimbraMon Disk Thresholds

Edit the file at:

Look for these lines:

Change them as desired to give different warning/critical levels.

In one case that we worked on, the server had multiple partitions. We wanted different thresholds on each partition which was accomplished with the following patch:


Perl – Sorting multi-diminsional arrays

To numerically sort @myarray by the second column do this:

Here is an alpha sort of @myarray on the third column: