Console stucked after setting console password in webgui..?



  • thank you doktornotor!

    But when I execute this command in Diagnostics>Command Prompt> like:
    /etc/rc.initial> then Press execute, nothing happens, It just loads continuously?  Is my syntax correct?

    Thank you!



  • Password protected console doesn't actually offer much in the way of protection.  When I told someone a while ago that if he wanted to make sure his pfsense wouldn't be tampered with he should lock it in a box, I wasn't joking.

    Locking the console is about as much protection as locking a screen door on a house…


  • Banned

    @AdminX:

    But when I execute this command in Diagnostics>Command Prompt> like:
    /etc/rc.initial> then Press execute, nothing happens, It just loads continuously?  Is my syntax correct?

    No… the > certainly does not belong there.



  • thank you doktornotor!

    I tried /etc/rc.initial in Diagnostics>Command Prompt then press execute.. but the page is loading continuously without any result..

    Ive notice this in the address bar. http://192.168.10.6/exec.php


  • Banned

    Uh eh huh? No, you don't run this from the webconfiguration webgui! Use SSH or (serial) console!



  • I totally missed that - Good catch…
    And good for a giggle.

    I've noticed that LOTS of people who lock the console have issue afterwards.


  • Banned

    Never thought people would try to run this in webgui either; LOL.


  • Netgate Administrator

    Out of interest what hardware is this running? Some specific hardware freezes at that point for some unknown reason.

    Steve



  • thank you gentlemen for giving time! Forgive me if Im still newbie, I know you've been there before also..:)

    I have figured it out.

    Here is what I did. Enable Secure Shell in System>Advanced using default port 22. I used Putty to get access to SSH. It shows me the pfsese menu right there. Here is my screenshot:

    Now Ive pressed 8(Shell), then fired in /etc/rc.initial. It shows me the menu ofcourse. But in my pfsense console, I still got these image? Which does not show the menu? only until Bootup Complete. Ive already restarted my PfsenseBox but nothing happens.

    Any Idea about this?

    My hardware:

    Intel I3 processor
    ASUS MB
    SATA 500gb hardisk
    PfsenseBox Running in Oracle VirtualBox


  • Banned

    Of course it does NOT show the menu on the physical console… I don't see how much more explicitly this should be said? That is the whole point of getting it password protected. What did you expect? Now, press enter, log on and then you can run /etc/rc.initial to see then menu.



  • I want the menu to be available in physical console. Not by using SSH. The menu should be available on the physical console because Ive disabled the option in system>advanced>password protect the console menu



  • Steady there killer…



  • Honestly, shortest easiest way to unscrew some little glitch is to reinstall.  Its fast.
    If you broke something, that will fix it.



  • I have plan to reinstall. But I don't want to loss all my settings especially my proxy server, cache settings, captive portal, etc. Any possible solution without reinstalling or losing my settings? I am willing to do.

    Thank you!


  • Banned

    Before reinstall

    
    grep admin /etc/passwd
    
    

    and check the last field, which is the shell.



  • Interesting - You have no XML backups of your configuration?

    Hmmmmmm.  Best follow doktornotor's instructions for a while.

    If you don't mind an ever so slightly short temper, he knows exactly what he is doing.


  • Netgate Administrator

    How are you accessing the console? Via virtual box presumably.

    Steve



  • @stephenw10, yes via virtualbox. I have no problem these before until ive touched the option to password protect the console.



  • @kejianshi, yes i have backups. and i hope if i reinstall, all will be restored as expected.



  • @doktornotor:

    Before reinstall

    
    grep admin /etc/passwd
    
    

    and check the last field, which is the shell.

    thank you doktornotor for the guide..should i fire these command in ssh? I got these result:



  • They will - Trust me.  I used to pull my hair out chasing down little gremlins in the system till I realized how much easier it was to wipe, reinstall and reload settings form XML file.  The only time this isn't useful is when the saved configuration was the problem, which is why I always backup XML before and after I make a major change.


  • Netgate Administrator

    I presume at that point the console is completely non-responsive, it's not possible to login?
    It doesn't matter what shell the admin user is set to run if you can't login as admin.

    Steve


  • Banned

    @stephenw10:

    I presume at that point the console is completely non-responsive, it's not possible to login?
    It doesn't matter what shell the admin user is set to run if you can't login as admin.

    Yeah, the shell is correct, I just wanted to check whether toggling the GUI checkbox does actually does something or not… Sounds like completely different problem. Rather then hunting for gremlins, a quick reinstall and backup restore should sort it out if it worked before.


Log in to reply