Skip to main content
JBruyet
New Member
June 15, 2015
Solved

Unable to save updated admin login data from Maintainer access

  • June 15, 2015
  • 3 replies
  • 7727 views

Hey all, I've inherited a Fortigate 80C and recently I've lost all login access to this device. Everything else seems to work, like VPN access and our VLAN. I found a way online to reset the lost admin password using the Maintainer login to change it but I'm getting an error: 

 

Domain1 login: maintainer Password: ******************** Welcome !

Domain1 # config system admin

Domain1 (admin) # edit admin new entry 'admin' added

Domain1 (admin) # set password Pass1

Domain1 (admin) # end User must have a profile object set operator error, -56 discard the setting Command fail. Return code -56

 

I've tried this a couple of times with the same result. I even tried it with my own login but no joy. I'm not a Fortigate guy so I'm not familiar with the device or any of its idiosyncracies. Am I missing a step here or is there a better way to do this? 

 

Thanks,

 

Joe B 

    Best answer by Carlos_A_Almeida

    JBruyet,

     

    Try this.

     

    Config system admin

    edit admin

    set accprofile "super_admin" set vdom "root" set password <your_password>

    end

     

    Good luck.

    3 replies

    Carlos_A_Almeida
    New Member
    June 15, 2015

    JBruyet,

     

    Try this.

     

    Config system admin

    edit admin

    set accprofile "super_admin" set vdom "root" set password <your_password>

    end

     

    Good luck.

    JBruyet
    JBruyetAuthor
    New Member
    June 16, 2015

    Thank you Carlos A Almeida, I just got in using your instructions.

     

    Thanks again,

     

    Joe B

    info2
    New Member
    June 5, 2016

    Sooo old, forgive the bump, but just confirming and thanking that this just worked for me also.

     

    My Fortwifi 60c suddenly stopped working and couldn't log in - same as this guy (https://forum.fortinet.com/tm.aspx?m=96238)

    I used fortiExplorer to upload new firmware (https://support.fortinet.com/Download/FirmwareImages.aspx) and then had to get one of each of these to be able to cli in:

     

    http://www.pbtech.co.nz/index.php?z=p&p=ADPDRJ459F - Dynamix DB9 Female to RJ-45 ADAPTOR(8 Wire) Extend Serial port via CAT5 Cable

     

    http://www.pbtech.co.nz/index.php?z=p&p=ADPATNUC-232A&name=ATEN-UC232A-USB-to-RS232-Serial-(RS-232)-DB9-Conve - ATEN UC232A USB to RS232 Serial (RS-232) DB9 Convertor DB-9 Male 35cm

     

    and I got a crossover cable which I didn't need.

     

    Then followed these 2 lots of instructions:

    http://docs.fortinet.com/...ost_admin_password.pdf

    http://help.fortinet.com/fweb/553/Content/FortiWeb/fortiweb-admin/connecting_gui_cli.htm

     

    Choice :)

     

     

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!