Guest User

Untitled

a guest
Jun 11th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. apt-get install whois
  4.  
  5. username="clample"
  6. pass="changeme"
  7. useradd -p "$(mkpasswd "$pass")" -d /home/"$username" -m -g users -s /bin/bash "$username"
  8.  
  9. echo "${username} ALL = (ALL) ALL" >> /etc/sudoers
Add Comment
Please, Sign In to add comment