Monday, February 3, 2020

Changing IPMI User Password

I was wondering how I would reset or change IPMI user password. The solution is actually simple, i.e., to use ipmitool.

Here is an example. I have a FreeNAS system running a server with a ASROCK Rack IPMI, and would do the following to change a IPMI user's password,

  1. Query IPMI users ID
    
    sudo ipmitool  user list 1
    

    where "1" is the channel number. The outputs resembles the following,
    
    
    ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
    1                    false   false      true       ADMINISTRATOR
    2   admin            false   false      true       ADMINISTRATOR
    3                    true    false      false      NO ACCESS
    4                    true    false      false      NO ACCESS
    5                    true    false      false      NO ACCESS
    6                    true    false      false      NO ACCESS
    7                    true    false      false      NO ACCESS
    8                    true    false      false      NO ACCESS
    9                    true    false      false      NO ACCESS
    10                   true    false      false      NO ACCESS
    

    where the admin user's ID is 2.

  2. Change IPMI user password. The following is to change the "admin" user's password to admin123.
    
    sudo ipmitool  user set password 2 admin123
    

    where "2" is the ID of the admin user. 

We can also do the above on a Linux system. Note that these are for the host's IPMI.