Modify linux system modify root user password

Cause

  • When I use the command to log in to the server, I keep saying that the password is wrong
ssh root@192.156.111.11 -p 8008
  • But sudo command can enter the same password. Then
# 首先 进入普通用户
 sudo passwd    # 输入密码
# 接着
设置行的密码即可

Insert picture description here

Guess you like

Origin blog.csdn.net/pythonstrat/article/details/109582213