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:

https://bugzilla.redhat.com/show_bug.cgi?id=486524

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:

http://blogs.reliablepenguin.com/files/vsftpd-2.0.5-12longuser.src.rpm

1

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.

1

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:

3

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:

1

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:

0