根据username.txt文件中每行代表的用户名,自动批量添加用户脚本
#!/bin/bash
while read line
do
useradd $line
echo "password" |passwd --stdin $lin
done<./username.txt
转载于:https://blog.51cto.com/milostar/692079
根据username.txt文件中每行代表的用户名,自动批量添加用户脚本
#!/bin/bash
while read line
do
useradd $line
echo "password" |passwd --stdin $lin
done<./username.txt
转载于:https://blog.51cto.com/milostar/692079