Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Lost password, option 3 didn't work, but I have backup

    Scheduled Pinned Locked Moved webGUI
    3 Posts 2 Posters 823 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      charlesa920
      last edited by

      is it possible to convert the password as listed in the backup config file into the original password?
      thanks
      Chalres

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        The config contains the hashed password (that also ends up in the FreeBSD passwd file). It is generated from the real password by crypt() : http://php.net/manual/en/function.crypt.php

        As that says:

        Note: There is no decrypt function, since crypt() uses a one-way algorithm.

        So pfSense and FreeBSD can verify the password you enter, but can't (easily) reverse it.
        I guess you could use some brute-force cracker to run against the hash value that you have.

        But I wonder why console menu option 3 did not work?

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • C
          charlesa920
          last edited by

          doing a search, I saw another instance where 3 didn't work and they speculated it had reached some max and converted to read only…. IDK

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.