FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
larsbollas
Staff
Staff
Article Id 352530
Description This article describes how to restore the admin account if the default admin account gets deleted.
Scope FortiGate.
Solution
  1. Backup the current FortiGate configuration:

 

backup config.PNG

 

  1. Open the configuration file in Notepad++ and search for "config system admin"

     

     

  2. Create the default admin with the following structure, and save the new file:

     

    config system admin

        edit "admin"
            set accprofile "super_admin"
            set vdom "root"
            set password password-in-plaintext
        next
    end

     

  3. Restore the configuration using the modified backup.


restore.PNG

 

  1. If unable to restore, factory reset the FortiGate in the CLI:

 

exe factory-reset

 

factoryreset.PNG

 

After a successful factory reset, repeat step 4.


Note: This article can also be used to reset the admin's password.