That's because it's  install-data-local  (I always confuse the two - grep install 
Makefile | grep local | grep data)

Databases and such are opened as root before ntop sheds privledges.  .html files et al 
are read by the web server thread as ntop.

-----Burton

---------- Original Message ----------------------------------
From: "Chris K Ellsworth" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Tue, 18 Mar 2003 19:02:29 -0800

>i under stand that the diff between -u root and -u ntop
>
>but what files does ntop have to read and write to operate, if i can check
>that i can validate if there is a perm problem or not
>becuase root can do the stuff but ntop cannot.
>
>is there a tool i can run ntop under that would log or show files its trying
>to access and it if failed/succeeded?
>
>also i tried the make install-local-data, it says ...     no rule to make
>target
>im running make install-local-data in the ntop dir of the source code.
>
>----- Original Message -----
>From: "Burton Strauss" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, March 18, 2003 11:24 AM
>Subject: Re: [Ntop] web page not displaying information when running as -u
>ntop
>
>
>> Think
>>
>> -u root means that you don't drop root's privledges, so pretty much you
>can read any file.
>>
>> -u ntop means you run with ntop's privledges, and MUST - as ntop - be able
>to read the files you're trying to copy...
>>
>> If you can't see the files as root, then your install probably failed.
>Might have to do 'make install-local-data' -- although make install does
>invoke install-local-data, I have had to do it by hand once or twice.
>>
>> Use wget http://127.0.0.1:3000/info.html and such to retrieve the pages.
>>
>> -----Burton
>>
>> ---------- Original Message ----------------------------------
>> From: "Chris K Ellsworth" <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> Date:  Tue, 18 Mar 2003 10:35:11 -0800
>>
>> >well it shows up when im -u root, but not when im -u ntop
>> >should i be able to find -iname  that file or at least browse to
>> >/usr/local/share/ntop/html and see it?
>> >becuase in either case (root or ntop) i cannot
>> >
>> >broswer is ie6x
>> >I have tried it from more than 1 compuer and have had friends try it
>also,
>> >they get the same result.
>> >
>> >Its currently running as root on http:\\198.31.174.48:3000
>> >
>> >all this computer has is lynx for a web browser so icannot view it
>locally
>> >
>> >does the dir -P <dir> need to refed somewhere in the config.h file for
>> >compling?
>> >
>> >Chris
>> >----- Original Message -----
>> >From: "Burton Strauss" <[EMAIL PROTECTED]>
>> >To: <[EMAIL PROTECTED]>
>> >Sent: Tuesday, March 18, 2003 8:19 AM
>> >Subject: Re: [Ntop] web page not displaying information when running
>as -u
>> >ntop
>> >
>> >
>> >> Try one of the internally generated pages
>> >(http://127.0.0.1:3000/info.html) and one that's an .html file in
>> >/usr/share/ntop/html (or wherever you installed them).
>> >>
>> >> If it's permissions, the generated page is ok and the other one won't
>> >appear.
>> >>
>> >> If it's a browser problem (which one are you using, BTW), then neither
>> >should appear.
>> >>
>> >> -----Burton
>> >>
>> >> ---------- Original Message ----------------------------------
>> >> From: "Chris K Ellsworth" <[EMAIL PROTECTED]>
>> >> Reply-To: [EMAIL PROTECTED]
>> >> Date:  Mon, 17 Mar 2003 20:09:08 -0800
>> >>
>> >> >Ok i have found that if i dont run it as -u root i cannot display the
>> >> >information, all i get is the left and top bars
>> >> >i belive this is something to do with the rights of the user ntop. or
>> >what
>> >> >files he has access to.
>> >> >I have tried to give the permissions notp.root but no luck yet, but
>again
>> >i
>> >> >could be missing something.
>> >> >
>> >> >
>> >> >OS version its the gentoo 1.4rc3
>> >> >
>> >> >./CONFIGURE OUTPUT
>> >> >This is your ntop 2.1.3 configuration:
>> >> >
>> >> >Host System Type  : i686-pc-linux-gnu
>> >> >Compiler (cflags) : gcc -g -O2 -pipe -DHAVE_CONFIG_H
>> >> >Include path
>> >> >    :  -I/root/ntop/ntop-2.1.3/gdchart0.94c -I/usr/include/openssl
>> >> >System Libs       :  -lpthread -lresolv -lnsl -ldl
>> >> >Core Libs         :  -lpcap -lgdbm
>> >> >Additional Libs
>> >>
>>
>>>:  -lcrypt -lm -lz -L/root/ntop/ntop-2.1.3/gdchart0.94c -lgdchart -lgd -lp
>n
>> >g
>> >> > -lz -L/usr/lib -lssl -lcrypto
>> >> >LBL pcap in       : standard installation
>> >> >GNU gdbm in       :
>> >> >MultiThread mode  : yes
>> >> >Install path      : /usr/local
>> >> >
>> >> >
>> >> >MY RUN LINE AND OUTPUT:
>> >> >test ntop # ntop -P /var/ntop -u ntop
>> >> >Wait please: ntop is coming up...
>> >> >17/Mar/2003 09:08:12 Initializing IP services...
>> >> >SSL is present but https is disabled: use -W <https port> for enabling
>it
>> >> >17/Mar/2003 09:08:12 Initializing GDBM...
>> >> >17/Mar/2003 09:08:12 Initializing network devices...
>> >> >17/Mar/2003 09:08:12 ntop v.2.1.3 MT (SSL) [i686-pc-linux-gnu]
>(03/16/03
>> >> >07:52:56 AM build)
>> >> >17/Mar/2003 09:08:12 Listening on [eth0]
>> >> >17/Mar/2003 09:08:12 Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]>
>> >> >17/Mar/2003 09:08:12 Get the freshest ntop from http://www.ntop.org/
>> >> >17/Mar/2003 09:08:12 Initializing...
>> >> >17/Mar/2003 09:08:12 Truncated network size to 1024 hosts (real
>netmask
>> >> >255.255.255.0)
>> >> >17/Mar/2003 09:08:12 Loading plugins (if any)...
>> >> >17/Mar/2003 09:08:12 Searching plugins in ./plugins
>> >> >17/Mar/2003 09:08:12 Welcome to icmpWatchPlugin. (C) 1999 by Luca
>Deri.
>> >> >17/Mar/2003 09:08:12 Welcome to LastSeenWatchPlugin. (C) 1999 by
>Andrea
>> >> >Marangoni.
>> >> >17/Mar/2003 09:08:12 Welcome to NetFlow. (C) 2002 by Luca Deri.
>> >> >17/Mar/2003 09:08:12 Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri.
>> >> >17/Mar/2003 09:08:12 Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and
>> >> >W.Brock
>> >> >17/Mar/2003 09:08:12 Welcome to sFlowPlugin. (C) 2002 by Luca Deri.
>> >> >17/Mar/2003 09:08:12 Resetting traffic statistics...
>> >> >17/Mar/2003 09:08:12 Started thread (16386) for network packet
>analyser.
>> >> >17/Mar/2003 09:08:12 Started thread (32771) for idle hosts detection.
>> >> >17/Mar/2003 09:08:12 Started thread (49156) for DNS address
>resolution.
>> >> >17/Mar/2003 09:08:12 Started thread (65541) for address purge.
>> >> >17/Mar/2003 09:08:12 Initializing plugins (if any)...
>> >> >17/Mar/2003 09:08:12 NetFlow export disabled
>> >> >17/Mar/2003 09:08:12 Waiting for HTTP connections on port 3000...
>> >> >17/Mar/2003 09:08:12 Started thread (81926) for web server.
>> >> >17/Mar/2003 09:08:12 Sniffying...
>> >> >17/Mar/2003 09:08:12 Started thread (98311) for network packet
>sniffing
>> >on
>> >> >eth0.
>> >> >
>> >> >LS -la OUTPUTS
>> >> >/var/ntop
>> >> >drwxr-xr-x    2 root     root         4096 Mar 17 09:08 .
>> >> >drwxr-xr-x   15 root     root         4096 Mar 16 09:29 ..
>> >> >-rw-r--r--    1 root     root        12288 Mar 16 09:33 LsWatch.db
>> >> >-rw-r--r--    1 root     root        12346 Mar 17 09:22
>addressCache.db
>> >> >-rw-r--r--    1 root     root        25613 Mar 17 09:22 dnsCache.db
>> >> >-rw-r--r--    1 root     root       190129 Mar 17 07:04 hostsInfo.db
>> >> >-rw-r--r--    1 root     root        12437 Mar 17 06:56 ntop_pw.db
>> >> >-rw-r--r--    1 root     root        12517 Mar 16 09:33 prefsCache.db
>> >> >
>> >> >/usr/local/share/ntop/html
>> >> >drwxr-xrwx    3 root     root         4096 Mar 16 09:26 .
>> >> >drwxr-xr-x    3 root     root         4096 Mar 16 09:26 ..
>> >> >-rw--w--w-    1 root     root         1512 Sep 16 08:28 About.html
>> >> >-rw--w--w-    1 root     root         2098 Sep 16 08:28 Admin.html
>> >> >-rw--w--w-    1 root     root         1003 Sep 16 08:28 Copyright.html
>> >> >-rw--w--w-    1 root     root         1705 Sep 16 08:28 DataRcvd.html
>> >> >-rw--w--w-    1 root     root         1681 Sep 16 08:28 DataSent.html
>> >> >-rw--w--w-    1 root     root         1564 Sep 16 08:28
>IPProtocols.html
>> >> >-rw--w--w-    1 root     root         1640 Sep 16 08:28 IPTraffic.html
>> >> >-rw--w--w-    1 root     root          866 Sep 16 08:28 Risk_high.gif
>> >> >-rw--w--w-    1 root     root          854 Sep 16 08:28 Risk_low.gif
>> >> >-rw--w--w-    1 root     root          861 Sep 16 08:28
>Risk_medium.gif
>> >> >-rw--w--w-    1 root     root          855 Sep 16 08:28
>Risk_unknown.gif
>> >> >-rw--w--w-    1 root     root         1764 Sep 16 08:28 Stats.html
>> >> >-rw--w--w-    1 root     root         1016 Sep 16 08:28 antenna.gif
>> >> >-rw--w--w-    1 root     root          147 Sep 16 08:28 arrow_down.gif
>> >> >-rw--w--w-    1 root     root          148 Sep 16 08:28 arrow_up.gif
>> >> >-rw--w--w-    1 root     root          954 Sep 16 08:28 back.gif
>> >> >-rw--w--w-    1 root     root         4852 Sep 16 08:28 bar.gif
>> >> >-rw--w--w-    1 root     root           77 Sep 16 08:28 bg_line.gif
>> >> >-rw--w--w-    1 root     root           35 Sep 16 08:28 black.gif
>> >> >-rw--w--w-    1 root     root          843 Sep 16 08:28
>bottom_corner.gif
>> >> >-rwx-wx-wx    1 root     root         1036 Sep 16 08:28 bulb.gif
>> >> >-rw--w--w-    1 root     root          910 Sep 16 08:28 card.gif
>> >> >-rw--w--w-    1 root     root           89 Sep 16 08:28 child.gif
>> >> >-rw--w--w-    1 root     root           45 Sep 16 08:28 clear.gif
>> >> >-rw--w--w-    1 root     root           94 Sep 16 08:28 collapsed.gif
>> >> >-rw--w--w-    1 root     root         1550 Sep 16 08:28 copyright.gif
>> >> >-rw--w--w-    1 root     root          107 Sep 16 08:28 corner.gif
>> >> >-rw--w--w-    1 root     root         1135 Sep 16 08:28 deleteURL.gif
>> >> >-rw--w--w-    1 root     root         1045 Sep 16 08:28 deleteUser.gif
>> >> >-rw--w--w-    1 root     root         1130 Sep 16 08:28 dns.gif
>> >> >-rw--w--w-    1 root     root           90 Sep 16 08:28 error.gif
>> >> >-rw--w--w-    1 root     root           91 Sep 16 08:28 expanded.gif
>> >> >-rw--w--w-    1 root     root         1406 Sep 16 08:28 favicon.ico
>> >> >-rw--w--w-    1 root     root          959 Sep 16 08:28 fback.gif
>> >> >-rw--w--w-    1 root     root          953 Sep 16 08:28 fforward.gif
>> >> >-rw--w--w-    1 root     root          957 Sep 16 08:28 forward.gif
>> >> >-rw--w--w-    1 root     root         3519 Sep 16 08:28 gauge.jpg
>> >> >-rw--w--w-    1 root     root          306 Sep 16 08:28 gray_bg.gif
>> >> >-rw--w--w-    1 root     root         1948 Sep 16 08:28 help.html
>> >> >-rw--w--w-    1 root     root         1214 Sep 16 08:28 index.html
>> >> >-rw--w--w-    1 root     root         1173 Sep 16 08:28
>index_inner.html
>> >> >-rw--w--w-    1 root     root         1232 Sep 16 08:28
>index_inner_w3c.h
>> >> >-rw--w--w-    1 root     root         1217 Sep 16 08:28
>index_left.html
>> >> >-rw--w--w-    1 root     root         1276 Sep 16 08:28
>index_left_w3c.ht
>> >> >-rw--w--w-    1 root     root         2031 Sep 16 08:28 index_top.html
>> >> >-rw--w--w-    1 root     root         2109 Sep 16 08:28
>index_top_w3c.htm
>> >> >-rw--w--w-    1 root     root         1229 Sep 16 08:28 index_w3c.html
>> >> >-rw--w--w-    1 root     root           98 Sep 16 08:28 info.gif
>> >> >-rw--w--w-    1 root     root          560 Sep 16 08:28
>j_DataRcvd.html
>> >> >-rw--w--w-    1 root     root          540 Sep 16 08:28
>j_DataSent.html
>> >> >-rw--w--w-    1 root     root          782 Sep 16 08:28 j_Stats.html
>> >> >-rw--w--w-    1 root     root         1081 Sep 16 08:28 j_home.html
>> >> >-rw--w--w-    1 root     root          842 Sep 16 08:28
>j_index_top.html
>> >> >-rw--w--w-    1 root     root          619 Sep 16 08:28 mail.gif
>> >> >-rw--w--w-    1 root     root          118 Sep 16 08:28 major.gif
>> >> >-rw--w--w-    1 root     root         7211 Sep 16 08:28 menubar.png
>> >> >-rw--w--w-    1 root     root         5655 Sep 16 08:28 menubar_j.png
>> >> >-rw--w--w-    1 root     root          366 Sep 16 08:28 menuline.png
>> >> >-rw--w--w-    1 root     root           97 Sep 16 08:28 minor.gif
>> >> >-rw--w--w-    1 root     root          864 Sep 16 08:28 modifyUser.gif
>> >> >-rw--w--w-    1 root     root         1017 Sep 16 08:28 multihomed.gif
>> >> >-rw--w--w-    1 root     root         1347 Sep 16 08:28 ntop.gif
>> >> >-rw--w--w-    1 root     root        19453 Sep 16 08:28 ntop.html
>> >> >-rw--w--w-    1 root     root          923 Sep 16 08:28 printer.gif
>> >> >-rw--w--w-    1 root     root          132 Sep 16 08:28 question.gif
>> >> >-rw--w--w-    1 root     root          901 Sep 16 08:28 router.gif
>> >> >drwx-wx-wx    4 root     root         4096 Mar 16 09:26 statsicons
>> >> >-rw--w--w-    1 root     root         1350 Sep 16 08:28 style.css
>> >> >-rw--w--w-    1 root     root          989 Sep 16 08:28 top.html
>> >> >-rw--w--w-    1 root     root         1023 Sep 16 08:28 url.gif
>> >> >-rw--w--w-    1 root     root          919 Sep 16 08:28 user.gif
>> >> >-rw--w--w-    1 root     root         3580 Sep 16 08:28 vgauge.jpg
>> >> >-rw--w--w-    1 root     root          444 Sep 16 08:28 warning.gif
>> >> >-rw--w--w-    1 root     root          179 Sep 16 08:28 wheel.gif
>> >> >-rw--w--w-    1 root     root          274 Sep 16 08:28 white_bg.gif
>> >> >test html #
>> >> >
>> >> >Chris K Ellsworth
>> >> >
>> >> >
>> >> >_______________________________________________
>> >> >Ntop mailing list
>> >> >[EMAIL PROTECTED]
>> >> >http://listgateway.unipi.it/mailman/listinfo/ntop
>> >> >
>> >>
>> >>
>> >> ____________________________________________________________
>> >> Free 20MB Web Site Hosting and Personalized E-mail Service!
>> >> Get It Now At Doteasy.com http://www.doteasy.com/et/
>> >> _______________________________________________
>> >> Ntop mailing list
>> >> [EMAIL PROTECTED]
>> >> http://listgateway.unipi.it/mailman/listinfo/ntop
>> >>
>> >
>> >_______________________________________________
>> >Ntop mailing list
>> >[EMAIL PROTECTED]
>> >http://listgateway.unipi.it/mailman/listinfo/ntop
>> >
>>
>>
>> ____________________________________________________________
>> Free 20MB Web Site Hosting and Personalized E-mail Service!
>> Get It Now At Doteasy.com http://www.doteasy.com/et/
>> _______________________________________________
>> Ntop mailing list
>> [EMAIL PROTECTED]
>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>
>
>_______________________________________________
>Ntop mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop
>


____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to