I was experimenting with the /etc/passwd file in my Ubuntu 18.04. I rebooted my machine to check whether the changes are affected. But unfortunately I am not even able to go to the login screen.
The machine displays Ubuntu loading screen and crashes automatically. How can I revert the changes made?