For security consideration, Linux (as UNIX) stores password in /etc/shadow, not in passwd. To restore your password, empty the corresponding part of your account records in /etc/shadow. You can do that in single user mode. No need to touch /etc/passwd.