@TBone, I wrote even in my first post that I did "$ sudo ls -lh /var/lib/ntop" it's in the output a line after the ls without sudo.
You replied
"When you tried to do an ls of that directory, it said "permission denied"...wouldn't that tell you that your 'regular' user ID doesn't have permissions to that directory????"
I wrote "Yes, and that is why if you check my post, I followed `$ ls -lh /var/lib/ntop` with `$ sudo ls -lh /var/lib/ntop` "
What i'm trying to show you there, is that I know the regular user doesn't have permission and hence I did that sudo command. But your reply suggests you don't understand that.
You replied saying "your regular user account doesn't have permissions to read that directory/files"
I don't understand why you don't accept that I did Sudo ls because the regular ls didn't have permission to read it. You even quoted where I did sudo ls.
You keep repeating that the regular account doesn't have permission to read the directory, but I told you that besides doing sudo with that ls command, I did run 'sudo ntop' too
So I don't understand why you don't understand what i'm trying to communicate.
I am aware that the regular account doesn't have permission.
Giving it permission doesn't help.. and it didn't run with sudo and still doesn't.
I have tried your suggestion below, but it doesn't work.
knoppix@Microknoppix:~$ sudo chown -R knoppix /var/lib/ntop
knoppix@Microknoppix:~$ sudo chmod 755 /var/lib/ntop
knoppix@Microknoppix:~$ ls -ld /var/lib/ntop
drwxr-xr-x 4 knoppix ntop 408 Jun 13 19:52 /var/lib/ntop
knoppix@Microknoppix:~$
So that's your suggestion. It doesn't work
knoppix@Microknoppix:~$ ntop
Fri Jun 13 19:55:26 2014 Initializing gdbm databases
Fri Jun 13 19:55:26 2014 **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: File open error
Fri Jun 13 19:55:26 2014 Possible solution: please use '-P <directory>'
Fri Jun 13 19:55:26 2014 **FATAL_ERROR** GDBM open failed, ntop shutting down...
Fri Jun 13 19:55:26 2014 CLEANUP[t3060647936]: ntop caught signal 2 [state=2]
Fri Jun 13 19:55:26 2014 ntop is now quitting...
knoppix@Microknoppix:~$
knoppix@Microknoppix:~$ ntop -P /var/lib
Fri Jun 13 19:54:28 2014 Initializing gdbm databases
Fri Jun 13 19:54:28 2014 **ERROR** ....open of /var/lib/prefsCache.db failed: File open error
Fri Jun 13 19:54:28 2014 Possible solution: please use '-P <directory>'
Fri Jun 13 19:54:28 2014 **FATAL_ERROR** GDBM open failed, ntop shutting down...
Fri Jun 13 19:54:28 2014 CLEANUP[t3060287488]: ntop caught signal 2 [state=2]
Fri Jun 13 19:54:28 2014 ntop is now quitting...
knoppix@Microknoppix:~$ ntop -P /var/lib/ntop
Fri Jun 13 19:54:31 2014 Initializing gdbm databases
Fri Jun 13 19:54:31 2014 **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: File open error
Fri Jun 13 19:54:31 2014 Possible solution: please use '-P <directory>'
Fri Jun 13 19:54:31 2014 **FATAL_ERROR** GDBM open failed, ntop shutting down...
Fri Jun 13 19:54:31 2014 CLEANUP[t3060127744]: ntop caught signal 2 [state=2]
Fri Jun 13 19:54:31 2014 ntop is now quitting...
knoppix@Microknoppix:~$
And if I try with sudo
knoppix@Microknoppix:~$ sudo ntop
Fri Jun 13 19:55:50 2014 Initializing gdbm databases
Fri Jun 13 19:55:50 2014 ntop will be started as user nobody
Fri Jun 13 19:55:50 2014 ntop v.4.99.3 (32 bit)
Fri Jun 13 19:55:50 2014 Configured on Mar 2 2013 6:00:33, built on Mar 2 2013 06:01:55.
Fri Jun 13 19:55:50 2014 Copyright 1998-2012 by Luca Deri <deri@ntop.org>
Fri Jun 13 19:55:50 2014 Get the freshest ntop from
http://www.ntop.org/
Fri Jun 13 19:55:50 2014 NOTE: ntop is running from 'ntop'
Fri Jun 13 19:55:50 2014 NOTE: (but see warning on man page for the --instance parameter)
Fri Jun 13 19:55:50 2014 NOTE: ntop libraries are in '/usr/lib/ntop'
Fri Jun 13 19:55:50 2014 Initializing ntop
.......
Fri Jun 13 19:55:53 2014 VENDOR: ntop continues ok
Fri Jun 13 19:55:53 2014 VENDOR: Checking for MAC address table file
Fri Jun 13 19:55:53 2014 VENDOR: File '/usr/share/ntop/oui.txt' does not need to be reloaded
Fri Jun 13 19:55:53 2014 VENDOR: ntop continues ok
.....
Fri Jun 13 19:55:53 2014 **ERROR** GeoIP: unable to load file GeoLiteCity.dat
Fri Jun 13 19:55:53 2014 **ERROR** GeoIP: unable to load ASN file GeoIPASNum.dat
Fri Jun 13 19:55:53 2014 NOTE: Interface merge enabled by default
......
Fri Jun 13 19:55:53 2014 RRD: Welcome to Round-Robin Database. (C) 2002-12 by Luca Deri.
Fri Jun 13 19:55:53 2014 SFLOW: Welcome to sFlow.(C) 2002-12 by Luca Deri
Fri Jun 13 19:55:53 2014 Calling plugin start functions (if any)
Fri Jun 13 19:55:53 2014 RRD: Welcome to the RRD plugin
Fri Jun 13 19:55:53 2014 RRD: Mask for new directories is 0700
Fri Jun 13 19:55:53 2014 RRD: Mask for new files is 0066
Fri Jun 13 19:55:53 2014 THREADMGMT: RRD: Started thread (t2984246080) for data collection
.........
Fri Jun 13 19:55:53 2014 WEB: ntop's web server is now processing requests
Fri Jun 13 19:55:53 2014 THREADMGMT[t2984246080]: RRD: Data collection thread starting [p5596]
Fri Jun 13 19:55:53 2014 THREADMGMT[t3060733952]: ntop RUNSTATE: INITNONROOT(3)
Fri Jun 13 19:55:53 2014 Now running as requested user 'nobody' (65534:65534)
Fri Jun 13 19:55:53 2014 Note: Reporting device initally set to 0 [eth0] (merged)
Fri Jun 13 19:55:53 2014 **WARNING** INIT: Unable to create pid file (/var/lib/ntop/ntop.pid)
......
Fri Jun 13 19:55:58 2014 CHKVER: Checking current ntop version at version.ntop.org/version.xml
Fri Jun 13 19:55:58 2014 CHKVER: Version file is from 'version.ntop.org'
Fri Jun 13 19:55:58 2014 CHKVER: as of date is '2012-10-16T11:00:47'
Fri Jun 13 19:55:58 2014 CHKVER: This version of ntop is a minimally supported but OLDER version - please upgrade
Fri Jun 13 19:56:03 2014 **ERROR** RRD: Disabled - unable to create base directory (err 13, /var/lib/ntop/rrd)
^C
Fri Jun 13 19:56:07 2014 CLEANUP[t3060733952]: ntop caught signal 2 [state=4]
.........
Fri Jun 13 19:56:08 2014 ===================================
Fri Jun 13 19:56:08 2014 ntop is shutdown...
Fri Jun 13 19:56:08 2014 ===================================
knoppix@Microknoppix:~$