you can also boot from the system disc and use the password menu to change the passwords.
If you do want to erase and install (always a good idea with second hand gear), there are options for writing zeros over everything to totally wipe it instead of just the standard erase which just rewrites the partition table, and doesn't actually wipe the data, just tags it as being overwrite-able (which is a lot faster)