Resetting a lost Admin password
Resetting a lost Admin password
来源 https://cookbook.fortinet.com/resetting-a-lost-admin-password/
Posted on October 10, 2018 by Bruce Davis
Periodically a situation arises where the FortiGate needs to be accessed or the admin account’s password needs to be changed but no one with the existing password is available. If you have physical access to the device and a few other tools the password can be reset.
Warning: This procedure will require the reboot of the FortiGate unit.
Update:
Once you have logged into your FortiGate with the maintainer account (as described below), if the FortiGate is running FortiOS 6.0.3 or later, you can enter the execute factoryreset command to return the FortiGate to its default configuration. This can be useful if you have deleted the admin administrator account.
In newer versions of the BIOS, you can expect some changes to the behaviour of the maintainer account. These changes will include:
- The countdown timer for how log you have to enter the credentials has increased. Starting from when the device powers up, you will have 60 seconds instead of 30.
 - Using the 
maintaineraccount and resetting a password cause a log to be created; making these actions traceable for security purposes. - The account will be able to reset the password for any super-admin profile user in addition to the default 
adminuser. This takes into account the possibility that the default account has been renamed. - The only thing the 
maintaineraccount has permissions to do is reset the passwords of super-admin profile accounts. 
You will need:
- Console cable
 - Terminal software such as Putty.exe (Windows) or Terminal (MacOS)
 - Serial number of the FortiGate device
 
Procedure
Step #1
Connect the computer to the firewall via the Console port on the back of the unit.
In most units this is done either by a Serial cable or a RJ-45 to Serial cable. There are some units that use a USB cable and FortiExplorer to connect to the console port.
Virtual instances will not have any physical port to connect to so you will have to use the supplied VM Hosts’ console connection utility.
Step #2
Start your terminal software.
Step #3
Connect to the firewall using the following:
| Setting | Value | 
| Speed | Baud 9600 | 
| Data Bits | 8 Bit | 
| Parity | None | 
| Stop Bits | 1 | 
| Flow Control | No Hardware Flow Control | 
| Com Port | the correct COM port | 
Step #4
The firewall should then respond with its name or hostname. (If it doesn’t try pressing “enter”.)
Step #5
Reboot the firewall. If there is no power button, disconnect the power adapter and reconnect it after 10 seconds. Plugging in the power too soon after unplugging it can cause corruption in the memory in some units.
Step #6
Wait for the Firewall name and login prompt to appear. The terminal window should display something similar to the following:
FortiGate-60C (18:52-06.18.2010)
Ver:04000010
Serial number: FGT60C3G10016011
CPU(00): 525MHz
Total RAM: 512 MB
NAND init... 128 MB
MAC Init... nplite#0
Press any key to display configuration menu...
......
reading boot image 1163092 bytes.
Initializing firewall...
System is started.
login:
Step #7
Type in the username: maintainer
Step #8
The password is bcpb + the serial number of the firewall (letters of the serial number are in UPPERCASE format)
Example: bcpbFGT60C3G10016011
Note:
On some devices, after the device boots, you have only 14 seconds or less to type in the username and password. It might, therefore, be necessary to have the credentials ready in a text editor, and then copy and paste them into the login screen. There is no indicator of when your time runs out so it is possible that it might take more than one attempt to succeed.
Step #9
Now you should be connected to the firewall. To change the admin password you type the following…
In a unit where VDOMs are not enabled:
config system admin
edit admin
set password
end
In a unit where VDOMs are enabled:
config global
config system admin
edit admin
set password
end
If the FortiGate is running FortiOS 6.0.3 or later you can also enter the following command to reset the FortiGate to its factory default configuration. This can be useful if you have deleted the admin administrator account.
execute factoryreset
Warning
Good news and bad news. Some might be worried that there is a backdoor into the system. The maintainer feature/account is enabled by default, but the good news is, if you wish, there is an option to disable this feature. The bad news is that if you disable the feature and lose the password without having someone else that can log in as a superadmin profile administrator you will be out of options.
If you attempt to use the maintainer account and see the message on the console, “PASSWORD RECOVERY FUNCTIONALITY IS DISABLED”, this means that the maintainer account has been disabled.
Disabling the maintainer feature/account
Use the following command in the CLI to change the status of the maintainer account
To disable
config system global
set admin-maintainer disable
end
To enable
config system global
set admin-maintainer enable
end
====================== End
Resetting a lost Admin password的更多相关文章
- 使用Docker Compose 部署Nexus后初次登录账号密码不正确,并且在nexus-data下没有admin,password
		
场景 Ubuntu Server 上使用Docker Compose 部署Nexus(图文教程): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/ ...
 - Recover lost Confluence password
		
confluence重置admin密码 复方法: 1. 运行此sql 找到你的管理员帐户: select u.id, u.user_name, u.active from cwd_user u joi ...
 - how to reset mac root password
		
Reset 10.5 Leopard & 10.6 Snow Leopard password Power on or restart your Mac. At the chime (or g ...
 - Spring Boot Admin 的使用 2
		
http://blog.csdn.net/kinginblue/article/details/52132113 ******************************************* ...
 - Magento: How to reset admin pssword
		
Magento: How to reset admin pssword If you forget your admin password for Magento and you can’t reme ...
 - VSS Admin 清除密码
		
[参阅链接]http://www.cnblogs.com/Zealot/archive/2004/09/18/44309.html the secret is to hack the um.dat f ...
 - Spring Boot Admin Reference Guide
		
1. What is Spring Boot Admin? Spring Boot Admin is a simple application to manage and monitor your S ...
 - spring boot admin + spring boot actuator + erueka 微服务监控
		
关于spring boot actuator简单使用,请看 简单的spring boot actuator 使用,点击这里 spring boot admin 最新的正式版本是1.5.3 与 spri ...
 - Django通过pycharm创建后,如何登录admin后台?
		
问题背景: 使用pycharm创建完成django项目(项目名称为:mydjangopro,app名称为my_blog) , 本想登录后台直接输入地址:http://127.0.0.1:8000/ad ...
 
随机推荐
- Laya自动图集原理
			
关于Laya自动图集 Laya会把size小于512*512的图片打入自动大图集中.如果图片被打入自动图集中,图片的内存就交由Laya自动处理,开发者不能手动删除. Laya最多生成6张2048*20 ...
 - 戴尔win10重新安装win7系统
			
戴尔v5468电脑win10重装回win7系统 首先是公司需要用到ie8来执行公司的项目维护,都是很早之前的项目了,因为是对接政府相关的业务,不怎么有把握对项目进行稳定更新,所以我就为这个ie8操碎了 ...
 - k8s踩坑记第1篇--rc无法创建
			
六一快乐!!! 什么是k8s,我不想解释,百度资料有很多,本系列只踩坑,不科普. 问题描述: 做Hello World的例子,结果get pods一直显示没有资源? 应用配置代码: apiVersio ...
 - Lwip:原生态的Linux socket应用如何移植到Lwip上
			
lwIP - A Lightweight TCP/IP stack 在上一篇中,我们了解到在OpenFastPath上如何移植原生态的Linux Socket应用程序,那么,对于另外一个老牌的小型TC ...
 - windows docker 安装cloudera/quickstart
			
最近需要写一个大数据的项目,但是公司没有测试环境,真是cao蛋,没办法,只能自己搭建一个测试环境,所以就在本地电脑装一个cloudera/quickstart,这个是一个单节点的大数据平台, 是clo ...
 - 关于datatable的数据绑定问题
			
最近做项目掉在数据绑定这个小坑里了,最后发现问题其实很简单,只是官方的文档描述可能不太清除导致的吧.首先贴上官网地址:http://www.datatables.club/ 关于这个插件的简单使用就不 ...
 - Codeforces Round #106 (Div. 2) D. Coloring Brackets 区间dp
			
题目链接: http://codeforces.com/problemset/problem/149/D D. Coloring Brackets time limit per test2 secon ...
 - Failed to execute request because the App-Domain could not be created. Error: 0x8007000e 存储空间不足,无法完成此操作。
			
今天业务发现,服务器上的网站无法访问了. 页面报错: Server Application UnavailableThe web application you are attempting to a ...
 - 分类Category的概念和使用流程
			
一.了解 1.分类的概念: category:类别.类目.分类 2.分类的作用: 将1个类中不同方法分到多个不同的文件中存储 可以在不修改原来类的基础上,为这个类扩充一些方法 注意: 分类中只能增加方 ...
 - java中方法传入参数时:值传递还是址传递?
			
JAVA中的数据类型有两大类型: ① 基本数据类型:逻辑型(boolean).文本型(char).整数型(byte.short.int.long).浮点型(float.double) ② 引用数据类型 ...