Batch of create users

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Batch of create users相关的知识,希望对你有一定的参考价值。

#! /bin/bash
for i in seq -w 11 20;do
id user$i &> /dev/null
retal=$?
if [ $retal -ne 0 ];then
useradd user$i &>/dev/null
echo echo $RANDOM123|md5sum|cut -c 1-10| passwd --stdin user$i &> /dev/null
echo "useradd have created."
else
echo "this users exists."
fi
done

以上是关于Batch of create users的主要内容,如果未能解决你的问题,请参考以下文章

RuntimeError: each element in list of batch should be of equal size

Column count of mysql.user is wrong. Expected 43, found 42. Created with MySQL 50518, now running 50

ERROR 3009 (HY000): Column count of mysql.user is wrong. Expected 45, found 43. Created with MySQL 5

Python script to create Screen from all Items/Graphs of a host

ueditor禁用编辑的时候报错:Uncaught TypeError: Cannot read property 'contentEditable' of undefined(代码片

java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors(代码片