aprootpwd utility

The aprootpwd utility changes the root user password on all connected IAS nodes.

By default, the aprootpwd utility changes the root password of IAS nodes. Only the root user can run the utility. You can run aprootpwd from any one of the IAS nodes. It is recommended to keep the same password for all platform nodes.

Important: If the root user is locked, you can’t run the command.

Syntax

aprootpwd [-h | --help] [--nodes]
The aprootpwd utility changes the root user password on specified IAS nodes.

Optional arguments

-h | --help
Displays help for the command.
--nodes
Specifies a comma-separated list of nodes. The default value is all.

Usage

The command prompts you to provide the new password.
  • Change the root password on all IAS connected nodes:
    • aprootpwd
      or
    • aprootpwd --nodes all
    Example:
    aprootpwd
    
    Please, enter the root user password: <new_password>
    Changing the root user password on nodes: ['node0101', 'node0102', 'node0103']...
    Done
  • Change the root password on a specific node:
    • If you want to keep the same password on all your nodes:
      aprootpwd --nodes <new node>
      Example:
      aprootpwd --nodes node0103
      
      Please, enter the root user password: <new_password>
      
      Verifying the current password for root user on other nodes: ['node0101', 'node0102']...
      Done
    • If you do not want to keep the same password on all your nodes:
      aprootpwd --nodes <new node>
      Example:
      aprootpwd --nodes node0101, node0102
      Please, enter the root user password: <new_password>
      
      Verifying the current password for root user on other nodes: ['node0103']...
      WARN: Failed to login as root user using current password on nodes: ['node0103'] .
      WARN: It seems that nodes: ['node0103'] have different password for root user.
      
          Warning:
             It is recommended to keep same password for all the platform nodes.
             Please make sure all the nodes have same password for root user.
      
      Do you want to continue to change password for root user for nodes: ['node0101', 'node0102'] ? (Yes/No) y
      Done
      
      Changing the root user password on nodes: ['node0101', 'node0102']...
      Done