They may have turned on the Open Firmware password to prevent the machine from booting from anything other than the internal hard drive.
The iMac may also have a bad optical drive.
We need more details about what you are seeing and exactly what is happening.