cancel
Showing results for 
Search instead for 
Did you mean: 
dreth
Level 7
Report Inappropriate Content
Message 1 of 3

Reset Root Password

Hello

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 aloksard
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: Reset Root Password

Hi,

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:-

https://wiki.archlinux.org/index.php/Reset_root_password
https://community.mcafee.com/message/288106#288106
https://kc.mcafee.com/corporate/index?page=content&id=KB70100



This is Mentioned in the Community Site .



Reset Root password | https://mcafee-external-v8.hosted.jivesoftware.com/thread/66594?start=0&tstart=0


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
- Hit CTRL+ALT+DEL
The system reboots now.



Regards

Alok Sarda

Highlighted
McAfee Employee aloksard
McAfee Employee
Report Inappropriate Content
Message 3 of 3

Re: Reset Root Password

Hi,

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

 

Regards

Alok Sarda

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • 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