如果用户具有sudo权限,那么直接可以运行如下命令: #sudo su root #passwd #更改密码 https://www.linuxidc.com/Linux/2016-05/131256.htm