Ubuntu – Why I’m not asked to set a password for Root when Installing Ubuntu

installationpasswordroot

When I install Ubuntu, it never shows an option to set a password, yet there is a password when trying to log in to the admin account and when I try to install packages. I can't change the password in Root because when I try to it says "Authentication manipulation token error". When I try to fix the shadow password thing in root it says access denied.

Best Answer

You aren't supposed to add a password for the root account. We have something called the sudo mechanism to handle that. Instead, you add users to the admin account. All those users can then run commands or programs as root by running sudo command for terminal commands or gksu command for GUI apps to run as root, such as gksu gcalctool though that example obviously makes no sense)

When you're being asked for a password when installing things, etc, it is your own password you should use. This way, it is possible to enable others to do administrative tasks without having to share passwords and keys. It is also configurable to allow someone to run a specific command as root, but not others, but you won't normally touch that.

The first user you created is by default the admin account.

Related Question