Vendor:Sixbell
Product: SOR
Executor: SSH
set-connect-timeout 1
set-read-timeout 5
set-ssh-version 2
# Definir linguagem como inglês
expect-regex "/[$|#|>]/"
exec "export LC_ALL=C"
# Vira sudo
expect-regex "/[$|#|>]/"
exec "sudo -k"
#Define a nova senha do usuario
expect-regex "/[$|#|>]/"
exec "sudo passwd [#USERNAME#]"
expect "New password:"
exec "[#NEW_PASSWORD#]"
expect "Retype new password:"
exec "[#NEW_PASSWORD#]"
expect "*updated successfully."
#logof
expect-regex "/[$|#|>]/"
exec "exit"