87

使用shell批量添加用户-惠鹏刚的博客-51CTO博客

 6 years ago
source link: http://blog.51cto.com/11726212/2071546
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
批量创建10个系统账号(oldboy01-oldboy10),并设置密码(密码为随机数,要求是字符和数字的混合)创建随机密码:#echo $RANDOM | cut -c 3-9并将用户名和密码写入到一个文件,方便管理#!/bin/bashtmpfile=/tmp/password.txtfor i in `seq 10`do  

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK