Guest User

Untitled

a guest
Dec 16th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # kvn_useradd
  4.  
  5. username="$1"
  6.  
  7. useradd -d /home/$username -m -s /bin/bash $username
  8. passwd $username
  9. echo -n "Grupos adicionais(separados por virgula): "
  10. read $other_groups
  11. usermod -a -G $other_groups $username
Add Comment
Please, Sign In to add comment