Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7
Report Inappropriate Content
Message 1 of 3

Reset Root Password


Is there any easy way to restart root password to CLI?
I got full access to GUI, but cant access via CLI 😞

IOS installed is 7.6.2

2 Replies
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: Reset Root Password


Hope you are doing well.

Please find the below steps to Reset Root MWG Password either on Physical/VM machines

1. Ensure that you have a keyboard and monitor hooked to your appliance.
2. Reboot the appliance.
3. Press 'a' when the GRUB bootloader appears.
4. Append " init=/bin/bash" at the prompt: <eadline console=ttyS0, 19200n8 console=tty0 root=/dev/sda1
# Making it read something similar to: <eadline console=ttyS0, 19200n8 console=tty0 root=/dev/sda1 init=/bin/bash
5. Press Enter to boot.
6. Remount the '/' partition: mount -o remount,rw /
7. Type 'passwd' at the prompt. The system prompts you for a new password.
8. Enter the new password.
9. Sync data in memory to HD: sync
10. Reboot the appliance (CTRL+ALT+DEL).

This was tried in the Lab and it works.

You can also refer to the link below:-

This is Mentioned in the Community Site .

Reset Root password |

Get physical access (monitor + keyboard, VMware console, etc)
- Reboot (CTRL+ALT+DEL)
- On the red "GNU GRUB" screen which shows available kernels (right before the OS loads) hit "e" on the keyboard
- The screen will slightly change, showing the boot options to you. An entry like "kernel /boot/..." should be highlighted. Hit "e" on the keyboard again
- Now the screen turns black... hit space and add init=/bin/bash to whatever the line looks like. Hit Enter.
- Hit "b" to boot with the modified settings
- You end up at a shell
- Mount the / partiton writable: mount -o remount,rw /
- Change the password by using passwd root
The system reboots now.


Alok Sarda

McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 3 of 3

Re: Reset Root Password


Below is also for your information:-

From version  7.7.1 or above, it's also possible to reset the root password from within the UI, via Troubleshooting > Reset appliance password.


If running MWG with version 7.7.1 or above then he can directly reset root password from MWG GUI.

Take MWG GUI access-> Navigate to option Troubleshooting-> Appliance -> Reset appliance password



Alok Sarda

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community