Want to reset password.

When I installed NIS I set a password to change any settings and I forgot it. I need to dissable the firewall to be able to install the IOS5 so I need to reset this password. Can this be done?  Thanks