I am just nearing the end of my Computing GCSE controlled assessment, and one of the questions is to write a shell script to automate adding new users and adding them to a group (in this case, either "teachers" or "students"). I found this website showing a script to add users with passwords, but I've copied it into a shell script on my Raspberry Pi, and I've got an error saying that I don't have permissions to run the program. I'm trying to run it from root@raspberrypi and I've used chmod -x to give execute permissions, but it's still not running.
Any ideas? I would really appreciate some help as the due date for the controlled assessment is this week!