Reset pfSense web interface password through main console












1















I'm (temporarily) in charge of a network where pfSense 2.0.1 is basically running the whole routing operation. Unfortunately, the network manager before me did not bother to write down what the username and password is to log into the web interface (it does appear to have been changed from the default). I do have full access to the main pfSense console, but as you can see in this photograph, my sorry attempts at getting some sort of admin menu failed miserably.



Is there a way I can reset the web interface username and password through the console? I tried searching for this a bit online, but anything I found about some sort of password reset seems to imply I do it from the web interface, which is where the problem lies in the first place! :)



Would appreciate any help in this matter! I do have a good bit of *Unix console experience, so I can make my way around a command line!










share|improve this question



























    1















    I'm (temporarily) in charge of a network where pfSense 2.0.1 is basically running the whole routing operation. Unfortunately, the network manager before me did not bother to write down what the username and password is to log into the web interface (it does appear to have been changed from the default). I do have full access to the main pfSense console, but as you can see in this photograph, my sorry attempts at getting some sort of admin menu failed miserably.



    Is there a way I can reset the web interface username and password through the console? I tried searching for this a bit online, but anything I found about some sort of password reset seems to imply I do it from the web interface, which is where the problem lies in the first place! :)



    Would appreciate any help in this matter! I do have a good bit of *Unix console experience, so I can make my way around a command line!










    share|improve this question

























      1












      1








      1


      1






      I'm (temporarily) in charge of a network where pfSense 2.0.1 is basically running the whole routing operation. Unfortunately, the network manager before me did not bother to write down what the username and password is to log into the web interface (it does appear to have been changed from the default). I do have full access to the main pfSense console, but as you can see in this photograph, my sorry attempts at getting some sort of admin menu failed miserably.



      Is there a way I can reset the web interface username and password through the console? I tried searching for this a bit online, but anything I found about some sort of password reset seems to imply I do it from the web interface, which is where the problem lies in the first place! :)



      Would appreciate any help in this matter! I do have a good bit of *Unix console experience, so I can make my way around a command line!










      share|improve this question














      I'm (temporarily) in charge of a network where pfSense 2.0.1 is basically running the whole routing operation. Unfortunately, the network manager before me did not bother to write down what the username and password is to log into the web interface (it does appear to have been changed from the default). I do have full access to the main pfSense console, but as you can see in this photograph, my sorry attempts at getting some sort of admin menu failed miserably.



      Is there a way I can reset the web interface username and password through the console? I tried searching for this a bit online, but anything I found about some sort of password reset seems to imply I do it from the web interface, which is where the problem lies in the first place! :)



      Would appreciate any help in this matter! I do have a good bit of *Unix console experience, so I can make my way around a command line!







      networking pfsense






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 29 '13 at 3:18









      DevinDevin

      182119




      182119






















          2 Answers
          2






          active

          oldest

          votes


















          4














          (This is pretty much copy paste from http://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help!)




          • Reboot the pfSense box

          • Choose option 4 (Single User Mode) from the loader menu (The one with
            the ASCII pfSense logo)

          • Press enter when prompted to start /bin/sh


          • Remount the drive as rewritable:



            /sbin/mount -o rw /




          • Run the built-in password reset command:



            /etc/rc.initial.password



          • Follow the prompts to reset the password



          Also, this is pretty much the same for most if not all linux boxes, expect you just use passwd and most likely don't need to remount the drive. When in single user mode you are dropped into root by default which can reset any users password. It's VERY nice.






          share|improve this answer
























          • Thanks, I don't know why I didn't pay more attention to that link before. I was also able to follow the first step on that page to reset mine, but the single user mode would work great too!

            – Devin
            Jul 30 '13 at 13:52



















          1














          If you have console access:




          • Click the option for shell command

          • run pfctl -d to disable firewall

          • run /etc/rc.initial.password to reset to the default password

          • Now you can login with admin/pfsense and change the password

          • Finally, run pfctl -e to enable the firewall again.






          share|improve this answer


























          • Thanks, this looks like a good answer! I added some mark up to your answer. There are some handy buttons at the top of the editor that can make your post more readable. I like to use the code markup to isolate commands from the rest of the text and separate steps with either bullets or numbers.

            – HackSlash
            Jan 8 at 17:26











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f625346%2freset-pfsense-web-interface-password-through-main-console%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          (This is pretty much copy paste from http://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help!)




          • Reboot the pfSense box

          • Choose option 4 (Single User Mode) from the loader menu (The one with
            the ASCII pfSense logo)

          • Press enter when prompted to start /bin/sh


          • Remount the drive as rewritable:



            /sbin/mount -o rw /




          • Run the built-in password reset command:



            /etc/rc.initial.password



          • Follow the prompts to reset the password



          Also, this is pretty much the same for most if not all linux boxes, expect you just use passwd and most likely don't need to remount the drive. When in single user mode you are dropped into root by default which can reset any users password. It's VERY nice.






          share|improve this answer
























          • Thanks, I don't know why I didn't pay more attention to that link before. I was also able to follow the first step on that page to reset mine, but the single user mode would work great too!

            – Devin
            Jul 30 '13 at 13:52
















          4














          (This is pretty much copy paste from http://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help!)




          • Reboot the pfSense box

          • Choose option 4 (Single User Mode) from the loader menu (The one with
            the ASCII pfSense logo)

          • Press enter when prompted to start /bin/sh


          • Remount the drive as rewritable:



            /sbin/mount -o rw /




          • Run the built-in password reset command:



            /etc/rc.initial.password



          • Follow the prompts to reset the password



          Also, this is pretty much the same for most if not all linux boxes, expect you just use passwd and most likely don't need to remount the drive. When in single user mode you are dropped into root by default which can reset any users password. It's VERY nice.






          share|improve this answer
























          • Thanks, I don't know why I didn't pay more attention to that link before. I was also able to follow the first step on that page to reset mine, but the single user mode would work great too!

            – Devin
            Jul 30 '13 at 13:52














          4












          4








          4







          (This is pretty much copy paste from http://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help!)




          • Reboot the pfSense box

          • Choose option 4 (Single User Mode) from the loader menu (The one with
            the ASCII pfSense logo)

          • Press enter when prompted to start /bin/sh


          • Remount the drive as rewritable:



            /sbin/mount -o rw /




          • Run the built-in password reset command:



            /etc/rc.initial.password



          • Follow the prompts to reset the password



          Also, this is pretty much the same for most if not all linux boxes, expect you just use passwd and most likely don't need to remount the drive. When in single user mode you are dropped into root by default which can reset any users password. It's VERY nice.






          share|improve this answer













          (This is pretty much copy paste from http://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help!)




          • Reboot the pfSense box

          • Choose option 4 (Single User Mode) from the loader menu (The one with
            the ASCII pfSense logo)

          • Press enter when prompted to start /bin/sh


          • Remount the drive as rewritable:



            /sbin/mount -o rw /




          • Run the built-in password reset command:



            /etc/rc.initial.password



          • Follow the prompts to reset the password



          Also, this is pretty much the same for most if not all linux boxes, expect you just use passwd and most likely don't need to remount the drive. When in single user mode you are dropped into root by default which can reset any users password. It's VERY nice.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 29 '13 at 5:00









          Austin HarshAustin Harsh

          1112




          1112













          • Thanks, I don't know why I didn't pay more attention to that link before. I was also able to follow the first step on that page to reset mine, but the single user mode would work great too!

            – Devin
            Jul 30 '13 at 13:52



















          • Thanks, I don't know why I didn't pay more attention to that link before. I was also able to follow the first step on that page to reset mine, but the single user mode would work great too!

            – Devin
            Jul 30 '13 at 13:52

















          Thanks, I don't know why I didn't pay more attention to that link before. I was also able to follow the first step on that page to reset mine, but the single user mode would work great too!

          – Devin
          Jul 30 '13 at 13:52





          Thanks, I don't know why I didn't pay more attention to that link before. I was also able to follow the first step on that page to reset mine, but the single user mode would work great too!

          – Devin
          Jul 30 '13 at 13:52













          1














          If you have console access:




          • Click the option for shell command

          • run pfctl -d to disable firewall

          • run /etc/rc.initial.password to reset to the default password

          • Now you can login with admin/pfsense and change the password

          • Finally, run pfctl -e to enable the firewall again.






          share|improve this answer


























          • Thanks, this looks like a good answer! I added some mark up to your answer. There are some handy buttons at the top of the editor that can make your post more readable. I like to use the code markup to isolate commands from the rest of the text and separate steps with either bullets or numbers.

            – HackSlash
            Jan 8 at 17:26
















          1














          If you have console access:




          • Click the option for shell command

          • run pfctl -d to disable firewall

          • run /etc/rc.initial.password to reset to the default password

          • Now you can login with admin/pfsense and change the password

          • Finally, run pfctl -e to enable the firewall again.






          share|improve this answer


























          • Thanks, this looks like a good answer! I added some mark up to your answer. There are some handy buttons at the top of the editor that can make your post more readable. I like to use the code markup to isolate commands from the rest of the text and separate steps with either bullets or numbers.

            – HackSlash
            Jan 8 at 17:26














          1












          1








          1







          If you have console access:




          • Click the option for shell command

          • run pfctl -d to disable firewall

          • run /etc/rc.initial.password to reset to the default password

          • Now you can login with admin/pfsense and change the password

          • Finally, run pfctl -e to enable the firewall again.






          share|improve this answer















          If you have console access:




          • Click the option for shell command

          • run pfctl -d to disable firewall

          • run /etc/rc.initial.password to reset to the default password

          • Now you can login with admin/pfsense and change the password

          • Finally, run pfctl -e to enable the firewall again.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 8 at 17:30









          HackSlash

          2,1051722




          2,1051722










          answered Jan 8 at 16:36









          Somewhat Useful PersonSomewhat Useful Person

          111




          111













          • Thanks, this looks like a good answer! I added some mark up to your answer. There are some handy buttons at the top of the editor that can make your post more readable. I like to use the code markup to isolate commands from the rest of the text and separate steps with either bullets or numbers.

            – HackSlash
            Jan 8 at 17:26



















          • Thanks, this looks like a good answer! I added some mark up to your answer. There are some handy buttons at the top of the editor that can make your post more readable. I like to use the code markup to isolate commands from the rest of the text and separate steps with either bullets or numbers.

            – HackSlash
            Jan 8 at 17:26

















          Thanks, this looks like a good answer! I added some mark up to your answer. There are some handy buttons at the top of the editor that can make your post more readable. I like to use the code markup to isolate commands from the rest of the text and separate steps with either bullets or numbers.

          – HackSlash
          Jan 8 at 17:26





          Thanks, this looks like a good answer! I added some mark up to your answer. There are some handy buttons at the top of the editor that can make your post more readable. I like to use the code markup to isolate commands from the rest of the text and separate steps with either bullets or numbers.

          – HackSlash
          Jan 8 at 17:26


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f625346%2freset-pfsense-web-interface-password-through-main-console%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...