Ubuntu root user is disabled by default and needs to be opened manually.
In general, all operations under Ubuntu are not root user, because sudo reasonable use, to avoid the root user error operation.
"Error type" with the Su-command switch to root the following occurs (note bold font):
[Email protected]:~/desktop$ Su-
Password:
Su:authentication failure
[Email protected]:~/desktop$
"Workaround" Root account activation method:
1. Unlock the root and set the password
Open terminal input: sudo passwd
Password: <---Enter your current user's password
Enter New UNIX Password: <---The new root user password
Retype new UNIX Password: <---Repeat the root user password
passwd: Password has been successfully updated
2. Change login, allow root login
Open System > System Management > login window)
Click the Security Options page and select Allow local administrators to log on.
3. Log off the current user and log in as root
If you want to disable the root account again, you can execute sudo passwd-l root.
This article is from the Linux OPS blog, so be sure to keep this source http://xuding.blog.51cto.com/4890434/1693120
How to enable the "Ubuntu" root account