Friday, 17 May 2013

How to reset "hscroot" password?

Instructions for hscroot password reset:

1 Power off the HMC.

2 Power on the HMC, and as soon as the Loading grub message is displayed

quickly press the F1 key to get into grub.

The Grub menu will show one line with the text hmc.

3 On the Grub menu, select e for edit. The next GRUB screen is displayed with two lines:

root (hd0,0)
kernel (hd0,1)/boot/bzImage ro root=/dev/hda2 vga=0x317 apm=power-off

Note: The root device can vary by model: hda2 C03, C04, CR2, and hdc2 for CR3.

4 Move the cursor down to the line starting with kernel. Select e for edit.

Move the cursor to the right and append the following to the end of the string:

V5.1.0 to V6.1.1: init=/bin/bash
V6.1.2 and later: init=/bin/rcpwsh

The final string will vary slightly by version and model:

kernel (hd0,1)/boot/bzImage ro root=/dev/hda2 vga=0x317 apm=power-off init=/bin/rcpwsh

Press the Enter key to save the changes.

5 Press b to boot the changed selection.

This will boot to a bash shell: (none):/#.

6 Verify root is mounted read/write. Type the following command:

$ mount -o remount,rw /dev/hda2 /

Note: The root device can vary by model: hda2 C03, C04; hdc2 for CR2,CR3; sda2 for CR4.

7 Reset root and hscroot passwords.

Run the following commands to reset the passwords. The command will prompt the user to enter the new password and a confirmation password. Any warning concerning the password being too simplistic can be ignored.

Reset root:
/usr/bin/passwd
Reset hscroot:
$/usr/bin/passwd hscroot

8 Reboot the HMC (left ctl+left alt+del).

9 Log on as hscroot.

10 Immediately after logon, use the Web-based System Manager (HMC GUI) or the chhmcusr.

HMC useful key combinations
CTRL-ALT-F1: Switch to Linux command line; no login possible. If you then click on CTRL-ALT-DEL the system will reboot.

CTRL-ALT-F2: Takes you back to the Xserver window.

CTRL-ALT-BACKSPACE: Kills of the Xserver and will start a new -fresh- one, so you can login again.

1 comment: