shell 批量添加用户、删除用户
2013-10-22 16:11
281 查看
#!/bin/bash
for i in $(seq 1 10);do
User=user$i
useradd $User
echo 123.com$i | passwd --stdin $User
done
#!/bin/bash
for i in $(seq 1 10);do
User=user$i
userdel -r $User
done
本文出自 “一步一步向上爬” 博客,请务必保留此出处http://linchqd.blog.51cto.com/7753012/1313335
for i in $(seq 1 10);do
User=user$i
useradd $User
echo 123.com$i | passwd --stdin $User
done
#!/bin/bash
for i in $(seq 1 10);do
User=user$i
userdel -r $User
done
本文出自 “一步一步向上爬” 博客,请务必保留此出处http://linchqd.blog.51cto.com/7753012/1313335
相关文章推荐
- 批量添加删除用户(SHELL)
- 批量添加删除用户(SHELL)
- shell批量添加删除100用户
- shell脚本-批量添加或删除用户
- centos100用户批量添加及删除shell
- SHELL 脚本批量添加删除用户
- sell脚本应用:批量添加(删除)用户
- 批量添加删除用户脚本
- shell批量删除UID>=500普通用户
- shell应用之批量添加用户实例
- 批量 添加/删除 用户脚本
- shell脚本批量添加用户
- 用户管理(一):使用shell脚本批量添加指定数量的用户
- shell批量删除UID>=500普通用户
- <linux小脚本>case实现批量添加/删除用户
- shell批量添加用户
- shell脚本之批量添加用户
- LINUX下批量添加用户的SHELL程序
- shell批量添加用户时随机生成密码脚本
- 批量添加用户shell脚本详解