chpasswd:批量修改用户密码(用输入重定向,输入内容为,用户名:密码) chpasswd < 1.txt 1.txt内容为(用户名:密码) 转载于:https://blog.51cto.com/xuelinux/1752972