Seems like the HTC phones are really taking up the lions share of Android news lately, doesn't it? First the G2 was rooted, and shortly after we learned that HTC did its best to prevent perma-rooting. And just this morning, we heard word that the Desire HD and Z are both being delayed. Quite a mouthful, we know - but now that you're up to speed: an enterprising individual by the name of kholk over at XDA-Devs has come up with a root method for the HTC Desire Z.

The method is very similar to the G2 method mentioned above - the process involves dropping a package on your SD Card and executing a few scripts. Sound doable? Here's the full process:

1. Download this package: MegaUpload
2. Copy the content of the package in a folder called "temproot" in your SDCard root.
3. Execute this script:

#!/system/bin/sh
cp -R /mnt/sdcard/temproot/* /data/local/tmp/
cd /data/local/tmp/
chmod 755 *
./rageagainstthecage-arm5.bin
ps

4. Restart Terminal Emulator
5. Execute this script:

#!/system/bin/sh
/data/local/tmp/busybox killall rageagainstthecage-arm5.bin
mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system
/data/local/tmp/busybox cp /sdcard/temproot/Superuser.apk /system/app/Superuser.apk
/data/local/tmp/busybox cp /sdcard/temproot/su /system/bin/su
/data/local/tmp/busybox cp /sdcard/temproot/busybox /system/bin/busybox
chmod 4755 /system/bin/su
chmod 4755 /system/bin/busybox
mount -o ro,remount -t ext3 /dev/block/mmcblk0p25 /system

Now your phone is temporairily rooted and you can even get root on adb.

This method works on the G2, as well. Again, though - in either case, the root access only lasts until reboot... for now.

[Source: XDA-Devs]