#!/bin/bash useradd -m test echo "123456" | passwd --stdin test 转载于:https://www.cnblogs.com/zheh/p/6216723.html