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