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 maintainer account 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 admin user. This takes into account the possibility that the default account has been renamed.
  • The only thing the maintainer account 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 adminedit adminset password end 

In a unit where VDOMs are enabled:

config globalconfig system adminedit adminset 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 globalset admin-maintainer disable
end

To enable

config system globalset admin-maintainer enable
end

====================== End

Resetting a lost Admin password相关推荐

  1. vss6 forgot admin password

    一不小心将VSS  6  admin用户的密码忘记,找到以下信息     the  secret  is  to  hack  the  um.dat  file  to  remove  the   ...

  2. 使用Docker Compose 部署Nexus后初次登录账号密码不正确,并且在nexus-data下没有admin.password

    场景 Ubuntu Server 上使用Docker Compose 部署Nexus(图文教程): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/ ...

  3. 本地管理员密码解决方案 Local Admin Password Solution (LAPS)

    据调查,大多数的企业在部署AD域后,针对客户端电脑的本机管理员采用以下几种方式管理方式: 1. 禁用本机管理员,只使用域账登录:但存在的问题是:当电脑因故障脱离域,或是无法使用域账号登录时,电脑就无法 ...

  4. Spring Boot Admin 2.1.0 全攻略

    点击上方"方志朋",选择"置顶或者星标" 你的关注意义重大! Spring Boot Admin是一个开源社区项目,用于管理和监控SpringBoot应用程序. ...

  5. Spring Boot Admin 2.0 上手

    Spring Boot Admin 在 Spring Boot Actuator 的基础上提供简洁的可视化 WEB UI,是用来管理 Spring Boot 应用程序的一个简单的界面,提供如下功能: ...

  6. helm3添加harbor仓库:带鉴权--username --password

    [root@m-1 helm]# helm repo add harbor_local --username=admin --password=密码 http://192.168.1xx.xxx:16 ...

  7. Spring Boot Admin –用于管理Spring Boot应用程序的Admin UI

    作为微服务开发的一部分,我们许多人都将Spring Boot与Spring Cloud功能一起使用. 在微服务领域,我们将有许多Spring Boot应用程序将在相同/不同的主机上运行. 如果将Spr ...

  8. 解决: Incorrect username or password, or no permission ( Docker 方式运行 Nexus3 登陆密码不为 admin123 、重置登陆密码)

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 登陆 输入 admin  admin123 直接报错: 查日志 发现的确登陆不成功: 2. 后 ...

  9. python 连接 rabbitMQ以及rabbitMQssl注意事项,password

    pip3 install pika==1.1.0 官方对于pika有如下介绍# Since threads aren't appropriate to every situation, it does ...

最新文章

  1. 用c语言编写程序学工系统,[工学]chap02_用C语言编写程序.ppt
  2. java--JVM--栈帧--JVM及其优化---逃逸技术(堆栈分配方法)(转载)
  3. C语言试题十七之用来求数组的最大元素在数组中的下标并存放在k所指的储存单元中
  4. 未捕获typeerror: $形象。cropper不是函数_没有学不会的python--细说自定义函数的细节...
  5. 计算机主机硬件详细介绍,计算机系统的硬件和系统软件详细介绍
  6. CTFbugku--菜鸟初学
  7. eclipse-sql server 2008连接
  8. 欧洲半导体三巨头的守旧与拓新
  9. 带有控制器,方法,标题,参数,@ RequestParam,@ PathVariable的Spring MVC @RequestMapping注释示例
  10. STM8停产,新唐的N76E003 pin对pin替换STM8S003F3P6
  11. 带时间窗的车辆路径规划问题(VRPTW)
  12. 【收藏】2018-2019届互联网大厂公司校招薪资汇总,基本年薪都在20万以上
  13. 古典问题:有一对兔子,从出生后第 3 个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?
  14. 手机开启自动调节亮度,到底是省电还是耗电?为何?
  15. 阿里云实人认证的功能及应用
  16. 20189220 余超《Linux内核原理与分析》第九周作业
  17. 金蝶EAS打开报更新失败 java.io.FileNotFoundException
  18. java:BufferedImage判断图像通道顺序并转RGB/BGR
  19. 芦荟怎么吃 这样吃很美味
  20. 怎么用python爬小说统计词频_python小练习爬取《寻梦环游记》评论并做词频统计...

热门文章

  1. 互联网 IT 精英:龙泉寺静心之旅 1
  2. 【面试总结】测试开发面试题目
  3. 【初等概率论】 02
  4. C++//变量和基本类型
  5. Linux学习:文件和用户管理——文件管理命令
  6. MTK 智能手机平台原生应用介绍
  7. 虚拟机配置IP和关闭防火墙
  8. Java线程池及配置参数详解
  9. android10(Q) API29下,通过getDeviceId()方法获取imei 报错的处理办法
  10. Python适合0基础菜鸟学吗