booting the iMac from the original install disk and stepping through the installation process until the menu bar appears at the top of the screen.
From there, choose utilities and Password Reset.
Follow the instructions.
Once finished, choose File and Quit Installer from the menu bar.
Machine will reboot and need the new password.