ubuntu switched root user prompt "Authentication failure"

Creative background:

ubuntu switching from ordinary users to root

Knows how to be su root command, switch to the root user, then will be prompted for a password, but also how not to lose, suggesting "Authentication failure",

At this point there are two kinds of situations:

One is really the wrong password is entered;

Second, the newly installed Linux system, did not set a password for root.

Set a password for the root user:

sudo passwd root

enter password,

And confirm the password.

Then click Change directory listed below

su root   
su - root   
su 普通用户   






— —

to be continued……


I like for myself, to praise for the King, you are free!

Writing is not easy, a point like it!


More exciting please pay attention to bloggers! ! !


Published 237 original articles · won praise 167 · views 30000 +

Guess you like

Origin blog.csdn.net/frdevolcqzyxynjds/article/details/105281504