Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2017
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # after `=` type the user account and password you wish to create respectively
  4.  
  5. user=your_selected_account_name
  6. password=your_supersecret_password
  7.  
  8. adduser --quiet --disabled-password --shell /bin/bash --home /home/$user --gecos "User" $user
  9.  
  10. # set password
  11. echo "$user:$password" | chpasswd
  12.  
  13. echo User: $user has been created with password: $password
  14.  
  15. #SCRIPT END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement