Skip to content

Password recovery

Amy Buck edited this page Nov 21, 2018 · 1 revision

You may need to recover a lost password.

1. Connect to the serial console port and verify that the serials settings are 115200 baud, 8 data bits, no parity.

2. Reboot or power up the system, the press ESC at the GNU GRUB prompt to view the menu.

+----------------------------------------------------------------------------+
|*OPX-A                                                                      |
| OPX-B                                                                      |
| ONIE                                                                       |
+----------------------------------------------------------------------------+

3. Press e to open the OPX GRUB editor.

4. Use the arrow keys to highlight the line that starts with linux. At the end of the line, add init=/bin/bash.

+----------------------------------------------------------------------------+
|setparams 'OPX-A'                                                           |
|                                                                            |
|    set root='(hd0,gpt7)'                                                   |
|    echo 'Loading OPX-Base ...'                                             |
|     linux (hd0,gpt7)/boot/opx.linux console=ttyS0,115200 root=/dev/sda7 \  | 
|rw init=/bin/bash                                                           |
|    initrd (hd0,gpt7)/boot/opx.initrd                                       |
+----------------------------------------------------------------------------+

5. Press Ctrl+x to reboot the system to a password-less root shell.

6. Enter the root password and username.

root@OPX:/# passwd admin

7. Enter a new password to change the default admin password.

root@OPX:/# passwd admin
Enter new UNIX password: xxxxxxxxx
Retype new UNIX password: xxxxxxxxxx
passwd: password updated successfully

8. Reboot the system to load OPX, then enter the new password.

root@OPX:/# reboot -f
Rebooting.[ 822.327073] sd 0:0:0:0: [sda] Synchronizing SCSI cache

[ 822.340656] reboot: Restarting system

[ 822.344339] reboot: machine restart
BIOS (Dell Inc) Boot Selector
S6000-ON 3.20.0.0 (32-port TE/FG)
Clone this wiki locally