jonaskoelker it did work,I think you were right, from home it didn't work, when i came to work today i tried it again and it worked, it only added the last one bc the rest were allready added, though when i run the command cat /etc/passwd | cut -d ":" -f1 I couldn't see new users there why! did i have to reboot or sth!! also why do i get this msg after running the script:
usage: useradd [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire ] [-p passwd] name
useradd -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire ]
I will have to spend some time improving it, bc i want also the script to check if the user is allready exist, if its true then i would a msg saying that the allready user exist.