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
#切换到root用户,还是进如到普通用户所在的目录
su root
#切换到root用户,并且进root用户所在目录
su - root
#切换回到普通用户
su 普通用户
reference
https://jingyan.baidu.com/album/fd8044fa1e74035031137ae0.html
— —
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! ! !