Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # First create a file which contains all the usernames, name 'userlist.txt'. Something like this (without the #):
- # henry
- # ilona
- # danielle
- # denzel
- #
- #!/bin/bash
- password="123456"
- for USER in $(cat userlist.txt)
- do
- useradd -m $USER
- echo -e "${password}\n${password}" | passwd $USER
- done
Add Comment
Please, Sign In to add comment