linux批量修改本机用户密码

echo "user1:newpassword1" > passwd.txt
echo "user2:newpassword2" >> passwd.txt
sudo chpasswd < passwd.txt
posted @ 2024-06-28 10:39  规格严格-功夫到家  阅读(22)  评论(0编辑  收藏  举报