AIX

 View Only
  • 1.  VIOS lost padmin password

    Posted Mon February 27, 2023 01:46 PM

    I have a VIOS server that is running (when viewed in HMC) but none of the LPARs that use it, are seeing the hardware. 
    When checking status of connections from IBMi LPAR, I get message that the vios server is "too busy" and google tell me this is likely a full file system.
    Unfortunately when our old Administrator left, he left the padmin password. 

    Because of this, I have no direct access to the VIOS server.

    So, question is, is there a command I can run from the HMC using the viosadminiuser interface (runs commands on the VIOS server) that will change a user password?   

    I found I can create a new user, issuing the mkuser command, but I can't figure out how to run commands that require a screen response like passwd or chpasswd.



    ------------------------------
    Marc Carpenter
    ------------------------------


  • 2.  RE: VIOS lost padmin password

    Posted Tue February 28, 2023 04:15 AM
    Edited by Christopher Lang Tue February 28, 2023 04:17 AM

    Hi Marc,

    I've never been in a position to have to do that, but I've had a look:

    If your environment allows you to take the VIOS offline: Recovering the padmin Password in VIOS (ibm.com)

    If not, then take a look at: Unlock Or Reset the VIOS Padmin Password from HMC - Operating Systems (spiceworks.com)

    Hope that helps.

    Thanks.



    ------------------------------
    Christopher Lang
    ------------------------------



  • 3.  RE: VIOS lost padmin password

    Posted Tue February 28, 2023 08:33 AM

    I would normally pipe the input into the command with something like the following:

    echo 'userid:password'|chpasswd

    Sending that command via the HMC ought to allow you to change the password.

    You might find that you have to play with the quotes (single or double) to get it to work exactly as you want, but that would allow you to specify a value along with the chpasswd command to your newly created user.



    ------------------------------
    Andrew Smith
    ------------------------------



  • 4.  RE: VIOS lost padmin password

    Posted Tue February 28, 2023 09:49 AM

    Marc,

     

    To recover this you will need to do a maintenance mode boot from a NIM server. Then access the rootvg and start a maintenance mode shell. You can set the password inside of there using the standard passwd command (passwd padmin). Make sure you properly sync  3 times to ensure all if IO is flushed to the disk and then reboot.

     

     

     

    Sent from Mail for Windows