Managing a FortiGate account
The settings in the instructions are relevant for FortiOS versions 6.x and 7.x. If you have a different FortiOS version, you can find documentation for it in the top right corner of the FortiGate control panel or on the official FortiGate website.
Create an administrator account
Graphical interface
CLI
- Connect to the firewall.
- In the FortiGate control panel, go to System → Administrators.
- Click Create new → System administrator.
- Specify the username and password that the administrator will use to connect to the firewall.
- Select a profile. A profile is an administrator role with access to the firewall settings. By default, the
super_adminprofile with full access to settings is available. You can create a new profile in System → Admin Profiles. - Click OK.
Change administrator account password
Graphical interface
CLI
- Connect to the firewall.
- In the FortiGate control panel, go to System → Administrators.
- Select the administrator username from the list.
- Switch to edit mode.
- Select Change password.
- Enter the old password.
- Enter the new password.
- Repeat the new password.
- Click OK.
Configure account lockout
By default, the account is locked for 60 seconds after three password entry attempts. You can change the number of password entry attempts and the timeout before the next attempt.
CLI
-
Configure the number of password retry attempts and the timeout duration:
config system globalset admin-lockout-threshold <admin_lockout_threshold>set admin-lockout-duration <admin_lockout_duration>endSpecify:
<admin_lockout_threshold>— number of password attempts. Three attempts are set by default. You can specify a value from 1 to 10;<admin_lockout_duration>— wait time in seconds after which you can re-enter the password. 60 seconds is set by default. You can specify a value from 1 to 4294967295.
Rename an account
Graphical interface
You cannot rename the account you are currently using to connect to the firewall.
- Connect to the firewall under an account with the
super_adminprofile or another profile with access to settings in System. - In the FortiGate control panel, go to System → Administrators.
- Select the administrator username from the list.
- Switch to edit mode.
- Change the administrator username.
- Click OK.