||Learning the Mac OS X Terminal: Part 1|
Response to: Being Careful
i did almost the same thing,..To fix your problem, if you have a jaguar boot disk, insert it and boot up from it. Go to disk utility and there should be a fix disk permissions option. click it and about an hour and a half later the majority of your problems should be over. Disk utility will reset all the main system file permissions back to normal.
Unfortunatly, i figured this out too late and lost all my stuff that wasnt backed up.