Friday, December 19, 2008

vsftpd and selinux

Doesn't play together.

If SeLinux is enabled and in the "enforcing" mode, you have to change the selinux config files to allow the user's ftp processes to read/write files from his own directory.

*sigh* 

Friday, November 14, 2008

Fixing a broken... perl module

Whenever there is an update of MailScanner or manual updating of some perl modules from CPAN or updating of software from 3rd party RPM repositories, there is a chance that Scalar::Util will be borken.. broken, resulting in

Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/Scalar/Util.pm line 30 

or similar.

The solution was found on a japanese website:
http://d.hatena.ne.jp/ksmemo/20071121/p1

$ wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz 
$ cd Scalar-List-Utils-1.19 
$ perl Makefile.PL 
$ make 
$ make test 
$ make install 

After that, "perl -MCPAN -e shell" should start without error messages.

Tuesday, October 28, 2008

SQL Injection prevention tool

Interesting tool, should try it out soon:


GreenSQL is an Open Source database firewall used to protect databases from SQL injection attacks.