Reset Linux User Password activity

The Reset Linux User Password activity resets the password for a given user on a Linux computer.

This activity requires that the user executing the command be able to run the chpasswd command and, if expiring the password immediately, to run chage with sudo privileges.

This activity replaces an SSH activity by the same name available in releases prior to Istanbul. If you have a workflow created in a previous version that uses the deprecated activity, your workflow will continue to work normally after upgrading to Istanbul. However, all new workflows must use the custom version of this activity. This activity was built with the SSH activity designer, which gives workflow administrators the ability to store input and output variables in the databus.

Input variables

Table 1. Reset Linux User Password input variables
Variable Description
hostname IP address of the target Linux machine.
user Name of the user whose password is being reset.
password New password set for this user. The password is a workflow variable that is encrypted either as a password2 field or by calling the encryption method of a Packages.com.glide.util.Encrypter object.
force_change Indicates if this password is temporary and to force the named user to change the password at login.

Output variables

Table 2. Reset Linux User Password output variables
Variable Description
return_code Indicates whether or not the user password reset action was successful.
error_message Describes any error that occurred during password reset. If no error occurred, this value is null.

Conditions

Table 3. Reset Linux User Password conditions
Variable Description
Success Activity successfully changed specified user's password
Failure Activity failed to change specified user's password.