linux 无交互添加用户设置密码

#!/bin/bash

useradd -m test
echo "123456" | passwd --stdin test
posted @ 2016-12-24 10:14  破冰Lab-Cookun  阅读(1515)  评论(0编辑  收藏  举报