My friend accidentally modified the passwd file and because of this He cannot login as a root to modify the mistake. In my own experiment, i found out that he had accidentally pressed 1 or more letter at the end of the line where the root account is defined (as shown below)
root❌0:0:root:/root:/bin/bash (original)
root❌0:0:root:/root:/bin/bash zzz (the modified file)
Because of this any attempt login as a root either by the LOGIN prompt or by SU command does not work. Is there any solution in regaining access to the system? Or should he just re-install the whole system?