Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # after `=` type the user account and password you wish to create respectively
- user=your_selected_account_name
- password=your_supersecret_password
- adduser --quiet --disabled-password --shell /bin/bash --home /home/$user --gecos "User" $user
- # set password
- echo "$user:$password" | chpasswd
- echo User: $user has been created with password: $password
- #SCRIPT END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement