cancel
Showing results for 
Search instead for 
Did you mean: 

How to recovery root password for access the console?

How to recovery root password for access the console?

Message was edited by: thuchapon on 9/22/13 10:55:10 PM CDT
6 Replies

Re: How to recovery root password for access the console?

any body have a solution ? plz

Re: How to recovery root password for access the console?

You can reset the root password from the console like any other linux server by booting into single user mode.

https://community.mcafee.com/message/288106

Re: How to recovery root password for access the console?

Hi Sroering,

the KB70100 that you posted in the community tell a solution to reset "admin" account but I need to reset the "root" account so do you have a KB that explain the step?.

ps. I still can't enter to single mode by use the following steps when I was the grub menu,

  • use the arrows to select the boot entry I want to modify.
  • press e to edit the entry
  • use the arrows to go to kernel line
  • press e to edit this entry
  • at the end of the line add the word single
  • press ESC to go back to the parent menu
  • press b to boot this kernel

Message was edited by: thuchapon on 9/24/13 10:06:59 PM CDT

Re: How to recovery root password for access the console?

Instead of adding single to the kernel line, add init=/bin/bash and hit ENTER to go back to parent menu. (ESC will revert your change!). Then hit b to boot this kernel line.

This will drop you directly into a shell. File system will be mounted read-only, so you have to make it writeable before you can reset the password.

# mount -o remount,rw /

# passwd

You should see "passwd: all authentication tokens updated successfully."

Because you bypassed original init service you have to take care when rebooting the appliance as normal shutdown/reboot scripts won't work.

First make sure that all data is written to HDD with "sync", then force reboot with parameter -f:

# sync

# reboot -f

Single user mode won't help you here because it will still ask for root password.

Cya, Ed

Re: How to recovery root password for access the console?

Hi Ed Hein,

It's Work. Many thanks.

McAfee Employee ufkazim
McAfee Employee
Report Inappropriate Content
Message 7 of 7

Re: How to recovery root password for access the console?

In 7.8.2 and higher (MLOS 3)

1. At the GNU GRUB boot menu select McAfee Web Gateway and press e to edit.

2. Go to the line that starts with linux and append init=/bin/bash at the end of the line.

3. Press Ctrl-x or F10 to boot.

4. After the system boots, enter the below commands in the console:
 
mount -o remount,rw /
passwd
sync
reboot -f
 
Thanks,
Ummer
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