|
|
@ -681,14 +681,22 @@ cat > /usr/bin/nexttouch-addusers << FOE
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
if grep panelusers /etc/group;
|
|
|
|
if grep panelusers /etc/group;
|
|
|
|
then echo OK;
|
|
|
|
then echo OK &> /dev/null;
|
|
|
|
else groupadd -g 12012 panelusers;
|
|
|
|
else groupadd -g 12012 panelusers &> /dev/null ;
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Введите имя пользователя, наприимер user, в конечном результате имена пользователей будут выглядеть user1, user2...user60.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
read username
|
|
|
|
|
|
|
|
|
|
|
|
for ((i=1;i<61;i++)); do
|
|
|
|
for ((i=1;i<61;i++)); do
|
|
|
|
userdel -r user\$i
|
|
|
|
userdel -r $username$i &> /dev/null
|
|
|
|
adduser user\$i -G panelusers
|
|
|
|
adduser $username$i -G panelusers &> /dev/null
|
|
|
|
passwd -d user\$i
|
|
|
|
passwd -d $username$i &> /dev/null
|
|
|
|
done
|
|
|
|
done
|
|
|
|
FOE
|
|
|
|
FOE
|
|
|
|
|
|
|
|
|
|
|
|