#vim /tmp/usertable.txt
zhangsan 123456
lisi 123456
#vim useradd.sh
#!/bin/bash
cat /tmp/usertable.txt | while read name password
do
useradd $name
echo $password | passwd --stdin $name
done
转载于:https://blog.51cto.com/3971212/1354945
#vim /tmp/usertable.txt
zhangsan 123456
lisi 123456
#vim useradd.sh
#!/bin/bash
cat /tmp/usertable.txt | while read name password
do
useradd $name
echo $password | passwd --stdin $name
done
转载于:https://blog.51cto.com/3971212/1354945