Created on
‎12-27-2024
06:09 AM
Edited on
‎05-27-2025
06:45 AM
By
Jean-Philippe_P
Description | This article describes how to use Secure Copy Protocol (SCP) to back up the FortiGate configuration file from FortiOS 7.4.4 onward, utilizing an admin profile with limited Read/Write permissions. |
Scope | FortiGate v7.4.4 and later. |
Solution |
Starting from v7.4.4, backing up a configuration file requires read/write access. Therefore, administrators with read-only access cannot back up a config file from the FortiGate or through SCP.
In cases where using the 'super_admin' profile with full access is not desirable due to security concerns, a custom admin profile with 'sufficient' Read/Write permissions can be created for the SCP backup to be taken.
A custom Administrator Profile should be created under 'System > Admin Profile' by selecting 'Create New'.
In the Access Permissions, assign 'Read' permissions to all Access Controls except for the 'System' Access Control, where 'Custom' permissions need to be selected. Apply 'Read/Write' permissions only to 'Administrator Users' Access Control and 'Read' permissions to the rest of the Access Controls.
Create a new administrator user by going to 'System > Administrators' and attaching the newly created 'scp-profile' admin profile.
Test the configuration file backup via SCP by using the newly created administrator user, which in this case is named 'scpadm':
scp -O scpadm@<FortiGate_IP>:sys_config <location>
If the SCP protocol is correctly enabled on the FortiGate, the above result should be visible after performing the test. Refer to this KB article: Technical Tip: How to download a FortiGate configuration file and upload a firmware file using secur...
Note: Although administrator users, using the newly created admin profile, have Read/Write permissions in the 'Administrator Users' Access Control, are unable to create other admin profiles with permissions exceeding those of the original admin profile, in this case, the 'scp-profile' admin profile. Attempting to do so will result in the following error:
Note: The same procedure applies to the FortiOS 7.6 branch. It has been tested with versions 7.6.0, 7.6.1, 7.6.2, and 7.6.3. If any issues arise while applying this procedure to the v7.6 branch, a new support ticket should be submitted to the TAC team for further investigation. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.