faith丶

导航

linux服务器面交互修改密码

#

免交互修改 root 密码

cat <<'EOF'>> /root/changepasswd.sh
#!/bin/bash

echo 'root#passwd' |passwd --stdin root

EOF

#

posted on 2024-06-05 09:43  faith丶  阅读(1)  评论(0编辑  收藏  举报