Skip to content

How To Reset Password

Xin Liu edited this page Nov 20, 2018 · 2 revisions

This TSG gives the instruction of how to reset a SONiC switch password.

  1. Edit Grub boot menu options 1.1 First you need to get into grub menu options. This menu is displayed right at the beginning of the boot. You should get something similar to this, but not the exactly the same. Choose the choice Start with SONiC-: image.png

1.2 Now we attempt to edit grub's boot option. Press "e" to edit the first grub menu option and navigate to kernel line: image.png

1.3 Remove quiet and add init=/bin/bash image.png

1.4 Press Ctrl-x to boot

  1. Remount / and /proc 2.1 After successfully boot you will be presented with bash command prompt: image.png
mount -o remount,rw / 
mount -o remount,rw /proc

3 Reset password 3.1 To reset an actual password is now simple as typing : passwd admin

image.png

sync
sudo reboot -f
Clone this wiki locally