First of all, there is no such thing as linux 7.1, you most likely are refering to a distribution
On to your problem, if you have a rescue disk, or the installation cds you can boot your system in rescue mode. Usually you type "linux rescue" at the shell. It will not prompt you for your password, allowing you to do a "cp passwd.bak passwd" which should do the trick for you.
Good luck!