Skip to content

Instantly share code, notes, and snippets.

@jsrimr
Last active October 28, 2019 05:30
Show Gist options
  • Select an option

  • Save jsrimr/53e08bbab30a16d65f0ad7a391cb44d2 to your computer and use it in GitHub Desktop.

Select an option

Save jsrimr/53e08bbab30a16d65f0ad7a391cb44d2 to your computer and use it in GitHub Desktop.
makeuser.sh
#!/bin/bash
password=1234
for username in eric jeff jesse bella jaeho
do
useradd $username -m -s /bin/bash
echo -e "$password\n$password" |passwd "$username"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment