Logging in as the root user should never be done on Linux. Using the root account could lead to disaster. Sudo is the preferred method of gaining elevated privileges. When I first started using Linux ...
You don't need to reinstall your whole operating system just because you forgot your Linux login. It's actually pretty easy ...