#!/bin/bash
for i in `seq -w 0 20`
do
useradd user_$i
passwd=`mkpasswd -s 0`
echo $passwd |passwd --stdin user_$i
echo "user_$i $passwd" >> /tmp/pass.log
done
转载于:https://blog.51cto.com/1439337369/1715595
#!/bin/bash
for i in `seq -w 0 20`
do
useradd user_$i
passwd=`mkpasswd -s 0`
echo $passwd |passwd --stdin user_$i
echo "user_$i $passwd" >> /tmp/pass.log
done
转载于:https://blog.51cto.com/1439337369/1715595