#!/bin/bash for name in zhangsan lisi wangwu do useradd $name echo "123456" | passwd --stdin $name done