-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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.
- 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-:
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:
1.3 Remove quiet and add init=/bin/bash
1.4 Press Ctrl-x to boot
- Remount / and /proc 2.1 After successfully boot you will be presented with bash command prompt:
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
sync
sudo reboot -f
-
For Users
-
For Developers
-
Subgroups/Working Groups
-
Presentations
-
Join Us