Linux修改root密码

332 阅读1分钟

在已知当前root密码的情况下,登入,然后通过passwd命令修改:

passwd root

输入新密码回车,然后再输入一遍确认即可。非root用户使用sudo passwd root