批量添加用户
#!/bin/bash
for USER in $(cat username.list)
do
useradd $USER
echo mypasswd|passwd $USER --stdin
done
cat username.list
user1 user2
user3
顶(0)
踩(0)
上一篇:Linux性能调优--虚拟内存
下一篇:cpu亲和性设置
- 最新评论
#!/bin/bash
for USER in $(cat username.list)
do
useradd $USER
echo mypasswd|passwd $USER --stdin
done
cat username.list
user1 user2
user3