There is a easier way with WP>2.9.2 (maybe even earlier)

Just add in your wp-config.php:
define(‘FS_METHOD’,’direct’);

That’s all.