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

    Reset Password root - Version 2.0.3

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 2.8k 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.
    • M
      Mediane
      last edited by

      Hi,

      On one of my installation Pfsense the root password seems to be corrupted, I tried to go through the reset mode (single user) but version 2.0.3 I have the answer "Access denied"

      Thank you

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Can you still get into the GUI?

        If you can, go to Diagnostics > Command, and run:

        pwd_mkdb -p /etc/master.passwd
        

        Or if you can get to a shell with the admin user, run it there.

        After you've run that, try to set the root password again using the User Manager in the GUI (edit the admin user, admin and root are the same user)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • M
          Mediane
          last edited by

          No, unfortunately the device is locked and the GUI too!

          It would have been nice to leave a way out in case of direct access to the primer still takes a little knowledge to reset the password and if the gloves its not able to put a door between the servers and the public …

          I'm starting to burn ... it's still aberrent the password no longer works and the traditional ways have been disabled in this beautiful release.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Nothing has been disabled like you're implying. Single user mode would work fine if the password database itself were not corrupted. (Could be your disk is failing, or just bad timing + power outage)

            http://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help! has many suggestions for getting back in, though only the single user path would help in cases where the admin/root password is lost/corrupt and the GUI is also unavailable.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              re-reading my previous response, I realized I wasn't all that clear.

              If you can get to single user mode, from there, run

              pwd_mkdb -p /etc/master.passwd
              

              And hopefully that will repair your password database for you.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • M
                Mediane
                last edited by

                Apparently the drive is locked in writing  :-\

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  when you boot into single user mode, do:

                  fsck -y -t ufs /
                  fsck -y -t ufs /
                  (yes, twice)
                  mount -a -t ufs
                  pwd_mkdb -p /etc/master.passwd

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

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