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
------------------------------
Original Message:
Sent: Mon February 27, 2023 01:45 PM
From: Marc Carpenter
Subject: VIOS lost padmin password
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
------------------------------