I'm trying to create a bash script that creates a new user. I pass the desired username as a argument, but it's not accepting the value. I'm trying to have: root@forgehe:~# bash newuser.sh userexample create a user named "userexample", but i get the error: adduser: To avoid problems, the username should consist only of letters, digits, underscores, periods, at signs and dashes, and not start with a dash (as defined by IEEE Std 1003.1-2001). For...
Originally asked by forgehe on Stack Exchange (askubuntu) (CC BY-SA 3.0).