Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Fullmoon
Contributor III

password reset

I forgot the password of my FGT 300C thats why I needed to reset the password via cli using the ff commands. However I got an error " User must have a profile object set operator error, -56 discard the setting Command fail. Return code -56" how to add profile for admin? Welcome ! New_FG300C~ # config system admin New_FG300C~ (admin) # edit admin new entry ' admin' added New_FG300C~ (admin) # set password password123 New_FG300C~ (admin) # end User must have a profile object set operator error, -56 discard the setting Command fail. Return code -56

Fortigate Newbie

Fortigate Newbie
3 REPLIES 3
pcraponi
Contributor II

you forgot to put your profile. # config system admin edit " admin" set accprofile " super_admin" set password xxxx # end The best way is create a new user with super_admin, log with then and delete your old " admin" . Because to set the admin password you will need to set the old pass. regards, Paulo Raponi

Regards, Paulo Raponi

Regards, Paulo Raponi
ede_pfau
SuperUser
SuperUser

no, you don' t need to know your old password to set a new one. Happened to me once. Get the config file, write the new password in cleartext into the ' set password' line, without the ENC keyword, reload the config file. That' s it.
Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
pcraponi
Contributor II

Oh yes, I said about old passowd thinking in GUI change. Not on config reload... Thats easy... But i think that the error are because they not set " accprofile" on admin.

Regards, Paulo Raponi

Regards, Paulo Raponi
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors