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

NTop password not working on latest RC

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
8 Posts 3 Posters 5.3k 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.
  • P
    pwnell
    last edited by Jun 19, 2011, 4:25 PM

    I have just installed nTop on the latest RC of pfSense 2 and it is asking me for a username/password for certain pages.  When I type in "admin" and the password I set in nTop Settings, it does not work - it asks me for my password again.  What must I do?

    1 Reply Last reply Reply Quote 0
    • S
      siddharth
      last edited by Jun 22, 2011, 2:53 PM

      Same here. I tried with username 'admin' and password 'admin' and that worked. Couldn't even change the password through the web interface or the command line (ntop -u root -A returns without prompting).

      pfSense 2.0-RC3

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Jun 22, 2011, 4:09 PM

        I tried this the other day and had an issue as well. It would appear that ntop's own command didn't work when run from the command line:

        ntop --set-admin-password=blah
        

        I tried that when ntop was running and when it was stopped.

        It needs some more investigation, could be a permissions issue or something else about the command changed.

        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
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jun 22, 2011, 8:52 PM Jun 22, 2011, 8:50 PM

          I just committed some fixed for ntop, I found the problem.

          You can't change the password while ntop is running. I restructured the code a bit so now it tries to stop ntop, wait 20 seconds for it to shutdown cleanly, then it changes the password and restarts ntop.

          I also fixed up a few other areas in the code that were iffy/not working/not proper.

          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
          • P
            pwnell
            last edited by Jun 22, 2011, 9:24 PM

            Yeah I did stop ntop, and ran this yesterday:

            
            [2.0-RC2][admin@fw.home]/root(8): /usr/local/bin/ntop --set-admin-password=admin
            Sun Jun 19 09:41:51 2011  NOTE: Interface merge enabled by default
            Sun Jun 19 09:41:51 2011  Initializing gdbm databases
            Sun Jun 19 09:41:51 2011  Setting administrator password...
            Sun Jun 19 09:41:51 2011  Admin password set...
            
            

            But it did not make any difference.

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Jun 22, 2011, 9:26 PM

              You also have to remove the password database for ntop before setting it (forgot to mention that, it's already in the code)

              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
              • P
                pwnell
                last edited by Jun 22, 2011, 10:54 PM

                @jimp:

                You also have to remove the password database for ntop before setting it (forgot to mention that, it's already in the code)

                Your fix did it - thanks.  Just curious, the original reason I wanted this to work is to see the Hosts Map.  It asks me for a new Google API key to be created.  What URL do I use?  I access nTop via http://192.168.0.10:3000/ - so should I use that?  If I do it still tells me the host key is wrong.  If you are the wrong person to ask just tell me and I'll ask on the nTop forums.

                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by Jun 23, 2011, 12:28 AM

                  I'm not sure about that. I don't recall what it wants in there, though I thought it wanted a hostname, not an IP address.

                  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
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received