cancel
Showing results for 
Search instead for 
Did you mean: 
thuchapon
Level 7

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
0 Kudos
5 Replies
thuchapon
Level 7

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

any body have a solution ? plz

0 Kudos
sroering
Level 13

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

0 Kudos
thuchapon
Level 7

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
0 Kudos

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

thuchapon
Level 7

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

Hi Ed Hein,

It's Work. Many thanks.

0 Kudos