Problems executing the password change script

Validate if when running the script, it is necessary to enter the root user password. If it is necessary, confirm these steps in the script below:

#Fill in sudo password

expect “*:”

exec “[#COE_SENHA#]”

#Set up a new password

expect “*password:”

exec “[#NEW_PASSWORD#]”

#Confirm a new password

expect “*password:”

exec “[#NEW_PASSWORD#]”

If the configuration does not require the root user password, proceed with the confirmation of these steps in the script below:

#Set up a new password

expect “*password:”

exec “[#NEW_PASSWORD#]”

#Confirm a new password

expect “*password:”

exec “[#NEW_PASSWORD#]”