Make sure that the script is running with root privileges
-rwxr-xr-x 675 listusers.sh
-rwxr-xr-x 5240 useradd.macosx.sh