resetting lost/forget admin and root password on F5 BIG IP

Can anyone suggest how to reset the forgotten root and admin password on F5 BigIP devices( running on 11.x and 10.x versions)

Do we need need to provide same password for root and admin? How does it work for a HA pair. We have two devices in redundant. Do we need to set same passwords on both devices for root and admin account?

Perhaps you have another account with full admin rights you can still use? This would suffice to update the root and admin account passwords.

If not, check out section “Resetting a lost or forgotten root password” @ 404 Page not found | BIG-IP Documentation

Once you have the root account access, you can normally set the admin password to anything you want in TMSH (i.e.

tmsh modify auth user admin password NewPasswoRd

). Only problem is that once you do that, you may have to re-configure the HA cluster. Put your standby appliance to Forced Offline state before you begin to ensure no unintended cluster failovers can occur as the cluster breaks.

First to reset the lost passwords you can go into the /config/bigip_user.conf file and change the “encrypted-password” field to password yourTempPassword. After you do that you can then load it via tmsh load sys config user-only. Once you do that, you can then change them in the GUI to something permanent so it re-encrypts them in the config file.

In an HA scenario, those accounts should sync with each other so no need to make them the same ahead of time.

First to reset the lost passwords you can go into the /config/bigip_user.conf file and change the “encrypted-password” field to password yourTempPassword. After you do that you can then load it via tmsh load sys config user-only. Once you do that, you can then change them in the GUI to something permanent so it re-encrypts them in the config file.

In an HA scenario, those accounts should sync with each other so no need to make them the same ahead of time.

Hi Brad Thanks for your response. Can you please confirm whether this root and admin passwords reside on bigip_user.conf file.

Hi Brad Thanks for your response. Can you please confirm whether this root and admin passwords reside on bigip_user.conf file.

Hi San, You should be able to go to ask.f5.com and query your request about password recovery.

Here is a link

I hope this helps

-=Bhattman=-

Hi Brad Do we need to get serial console connection and restart the device during this process?

Hi Brad Do we need to get serial console connection and restart the device during this process?

Thanks, Brad!

Thanks, Brad!

How can you go to /config/bigip_user.conf if you don’t have a password to login?

How can you go to /config/bigip_user.conf if you don’t have a password to login?

See the reset procedure here: https://support.f5.com/csp/article/K13121p3

It assumes you have direct console access to the BigIP. It is an interruptive process.

See the reset procedure here: https://support.f5.com/csp/article/K13121p3

It assumes you have direct console access to the BigIP. It is an interruptive process.

There are no files in /config folder after entering single mode

There are no files in /config folder after entering single mode

While in Single-User Mode-

Type the following commands:

mount -a

passwd root

You will be prompted to reset the root password.

After resetting the root account password, you will now have an administrative account where by you can reboot the box, log-in as root and perform the aforementioned steps with the bigip_user.conf

Good luck!

While in Single-User Mode-

Type the following commands:

mount -a

passwd root

You will be prompted to reset the root password.

After resetting the root account password, you will now have an administrative account where by you can reboot the box, log-in as root and perform the aforementioned steps with the bigip_user.conf

Good luck!

sh: (try ‘info’) / > passwd root

sh: passwd: command not found