#!/bin/bash
for USER in $(cat username.list)
do
useradd $USER
echo mypasswd|passwd $USER --stdin
done
cat username.list
user1 user2
user3
#!/bin/bash
for USER in $(cat username.list)
do
useradd $USER
echo mypasswd|passwd $USER --stdin
done
cat username.list
user1 user2
user3
金钼软件下载站 Copyright(C) 2008- 601958.cn All Rights Reserved!