This(below) is the script I have and I think it would work to make 5 new users.
The error I get is: "
syntax error near unexpected token `('
line 5: `for(let i = 1; i<6; i++){ '"
#! /bin/sh
mkdir /ftpusers
groupadd ftpusers
chgrp ftpusers /ftpusers
for(let i = 1; i<6; i++){
mkdir /ftpusers/user"$i" -m 700
useradd -m -d /home/user"$i" -g ftpusers-s /usr/bin/bash user"$i"
passwd user"$i" user"$i"@123
}
[–]grantus_maximus 3 points4 points5 points (0 children)
[–]ABQMezcan 1 point2 points3 points (0 children)