23,121
社区成员
发帖
与我相关
我的任务
分享
#!/bin/bash
user="username"
cat userlist | while read line
do
if [ $user == $line ];then
useradd $user
cp information /home/$user
chown $user /home/$user/information
echo "username : $user"
fi
done
chmod a+x user.sh
./user.sh