Yuri Slobodyanyuk Blog on Information Security 2024年07月23日
You CAN and probably should rename/delete the default admin user on Fortigate, here is how
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文介绍了在Fortigate设备上重命名或删除默认管理员帐户的步骤。为了安全起见,建议重命名或删除默认管理员帐户,并创建另一个具有超级管理员权限的用户帐户,以防止意外锁定管理权限。文章还解释了相关注意事项,例如无法在使用管理员帐户登录时进行重命名或删除操作,以及重命名不会改变管理员帐户的密码等。

🤔 **创建超级管理员用户:** 首先需要创建一个新的用户,并赋予其超级管理员权限,例如名为“fortiadmin”的用户。这样可以确保在修改默认管理员帐户时,不会意外锁定管理权限。

🔑 **重命名管理员用户:** 在创建超级管理员用户后,可以使用“rename”命令将默认管理员用户重命名为其他名称,例如“original_admin”。重命名操作不会更改管理员帐户的密码,因此可以使用旧密码登录。

🗑️ **删除管理员用户:** 可以使用“del”命令完全删除默认管理员用户。如果需要,可以随后创建一个新的名为“admin”的用户,并设置新的密码和权限。

🔄 **可逆的操作:** 重命名和删除操作都是可逆的。可以将重命名的用户重新命名为“admin”,也可以重新创建被删除的管理员用户。

⚠️ **安全建议:** 建议定期检查和更新所有用户帐户的密码,并使用强密码。此外,建议启用多因素身份验证,以增强安全性。

Many best practices in security and regulations (PCI-DSS, NIST 800-53) demand or recommend renaming/deleting the default administrative accounts that come with the equipment. And every Fortinet product comes with the admin account built-in. Some people are afraid to lose administrative access by such changes, but with the Fortinet Fortigate it is not the case - you can rename or delete this account without any bad consequences whatsoever. Here is how to do it on CLI of the Fortigate.

Before diving in to the config, you may want to know few facts about the procedure:

    You cannot rename/delete the admin user while logged in with it.

    You have to create first another user privileged enough (super_admin) to make changes to admin. This way Fortigate prevents you from locking yourself out of the management.

    Just renaming the admin does NOT alter its password, so you can still log in with the existing one.

    You can rename the user back to admin if you want to, i.e. the renaming is reversible.

    If you delete admin, you can later create a new user named admin again.

Renaming the admin user to something else (here to original_admin)

    First, have to create a new user (fortiadmin, name is irrelevant) with super_admin access profile:

config sys adminedit fortiadminset password s#cr#tset accprofile super_adminset trusthost1 10.10.19.0/24next

    Now I can rename the admin

# config sys admin(admin) # rename admin to original_admincommand parse error before 'admin' . <-- HAVE TO LOG OUT OF ALL SESSIONS OF admin FIRSTCommand fail. Return code -61FGT-Perimeter (admin) # rename admin to original_adminFGT-Perimeter (admin) # showconfig system admin    edit "original_admin"        set accprofile "super_admin"        set vdom "root"        set password ENC SH2vACIdY6Mn1jTArqaRkLrK5kRjdFSMOrFUwG5wY/MdGEQQfVOPeDq7vzVEZs=    next    edit "fortiadmin"        set accprofile "super_admin"        set vdom "root"        set trusthost 10.10.19.0/24        set password ENC SH2/ivwkt6MPTQbJdStQmFrA6CAn73T86rjGEPka3ivoNfbVE6a6W2YlpBFjN8=    nextend

Delete admin altogether

FGT-Perimeter (admin) # del adminFGT-Perimeter (admin) # end

Re-crete admin user

FGT-Perimeter # config sys adminFGT-Perimeter (admin) # edit adminnew entry 'admin' addedFGT-Perimeter (admin) # set password s3cr3ButNotFGT-Perimeter (admin) # set accprofile super_adminFGT-Perimeter (admin) # end

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Fortigate 管理员账户 安全 重命名 删除
相关文章