自动创建系统用户脚本

vim useradd.sh

#!/bin/bash
#自动创建系统用户
groupadd ts
for username in ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts8
do
useradd -G ts $username
echo "123456" | passwd --stdin $username
done

posted @   chenjianwen  阅读(349)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示