FortiGate Admin Password Reset — Maintainer + bcpb Method (FortiOS 6.x / 7.x)
TL;DR: When you lose the FortiGate admin password, you can reset it via console cable using the maintainer user and the password format bcpb<serial-number>. Important: In FortiOS 7.0.2 and later, the admin-maintainer feature is disabled by default. If it’s disabled, you must factory reset and restore from backup.
Which method for which case?
| FortiOS version | Maintainer + bcpb method | Notes |
|---|---|---|
| 5.0 – 5.6.x | ✅ Works | 60 seconds login window |
| 6.0.x – 6.2.x | ✅ Works | 30 seconds login window |
| 6.4.x – 7.0.1 | ✅ Works | 14 seconds login window |
| 7.0.2 and later | ⚠️ Disabled by default | Requires set admin-maintainer enable set beforehand |
⚠️ Requirements
- Physical console access to the device (RJ-45 to DB9 or USB console cable)
- Terminal software (PuTTY, Tera Term, SecureCRT, screen, minicom)
- Console settings:
9600 baud, 8 data bits, no parity, 1 stop bit, no flow control - The device serial number (on device label or in GUI Dashboard if accessible)
- Permission to reboot the device (a maintenance window in production)
Method 1 — Reset using Maintainer + bcpb account
This is the classic and reliable method. FortiGate allows a special user named maintainer to log in via console for a brief window during each boot. The password format is fixed: the prefix bcpb followed by the device serial number.
- Find the device serial number. It’s printed on the bottom or back label of the device (example format:
FGT60E4Q17012345). If you can’t reach the label, get it from your recorded inventory. - Connect the console cable to the device and open your terminal software. The correct baud rate (
9600) is critical — wrong baud means garbled characters. - Power cycle the device (hardware reboot). Boot messages will start flowing.
- When boot completes, the
FGTXXX login:prompt appears. You have a 14–60 second window here (version dependent). - Type
maintaineras the username and press Enter. - Type
bcpb+ serial number as the password. It is case-sensitive. Example: if the serial isFGT60E4Q17012345, the password isbcpbFGT60E4Q17012345. - If login succeeds, you drop into the CLI with admin privileges. Now reset the admin password:
config system admin
edit admin
set password <new-password>
next
end
- Type
exitand log in again with theadminaccount using the new password.
Method 2 — Status check for FortiOS 7.0.2+
Starting with FortiOS 7.0.2, the admin-maintainer feature is disabled by default for security. In this case, maintainer + bcpb attempts are rejected. To check whether it was enabled beforehand, look at the previous configuration backup for:
config system global
set admin-maintainer enable
end
If this line is missing from your backup, or set to disable, Method 1 will not work. Proceed to Method 3.
Method 3 — Factory reset (last resort)
On devices where the maintainer account is disabled or was never enabled, you can factory reset at the cost of losing the current configuration. If you don’t have configuration backups, do not proceed without contacting support first.
- Connect via console as in Method 1.
- Reboot the device and press
Ctrl+CorCtrl+Bwhen prompted (model-dependent) to enter the boot menu. - From the boot menu, run “Format boot device” followed by “Reset to factory default”.
- When the device boots with factory settings, log in with the default credentials: username
admin, passwordempty(just press Enter). - On first login, the device will require you to set a new password.
- Restore your previously backed-up configuration:
execute restore config tftp <file> <tftp-server>
Common issues
- “Login incorrect” error. Verify the serial number — case matters. Some models use lowercase letters in the serial, but the password prefix is always
bcpb. - No login prompt at all. Wrong baud rate. Try
115200in addition to9600on newer models. - “Password” not asked after maintainer. This is FortiOS 7.0.2+ with
admin-maintainer disable. Proceed to Method 3. - Window too short to type. Have the username and password ready in clipboard. Type
maintainerand Enter immediately when the prompt appears, then paste the password.
Preventive recommendations
- On production devices, keep
admin-maintainerdisabled and take regular configuration backups. - Manage admin passwords with a team password vault (1Password, Bitwarden, KeePass).
- Create a second admin account (e.g.
backup-admin) and give it to a different person. - Use FortiAuthenticator or RADIUS integration for centralized identity management.
FortiGate technical support
Need help with FortiGate setup, configuration, password reset, license renewal, or FortiAuthenticator integration? We have been providing firewall and network security consulting across Turkey since 1998.




