centos修改root密码

echo "密码" | passwd --stdin root

--stdin 这个选项用于从标准输入管道读入新的密码

posted @ 2021-12-18 20:54  1769987233  阅读(231)  评论(0)    收藏  举报