How do I set the root password so I can use su instead of sudo?
- by Zignd
Warning: Directly logging in as root is like playing with fire, because one little typo is enough to lose critical data or make your system unbootable. Note that desktop environments will also function incorrectly if you login to them as root.
See these questions for the reasons behind why sudo is preferred and why root-login is disabled by default:
What are the benefits of sudo over su?
Why is there no option to login as root?
Instead of letting you set a password for root during install Ubuntu set it to * for no password and disables the actual account login, however even with this being said you can still use root in ubuntu by sudo.
So how to set a root password on Ubuntu?