Go to disk utility and verify permissions. Then, using Terminal, fix the permissions with chmod as root
Try going into Disk Utility and verify permissions. Then use the terminal to fix the permissions with chmod as root.
If that doesn't work, you could try reinstalling Leopard.
You could even take it to the Apple Store, but I doubt they would fix a G5 for free...
EDIT: Don't take my word for it too much, simply because I have never owned an iMac. I simply gathered information for you.