The problem seems more complex than just the ownership of the
/var/lib/ntop directory.

When running the default /etc/init.d/ntop script, I get the following
error:

[EMAIL PROTECTED]:/var/lib/ntop# sudo /etc/init.d/ntop start
Starting network top daemon: Fri Apr 11 13:14:18 2008  NOTE: Interface merge 
enabled by default
Fri Apr 11 13:14:19 2008  Initializing gdbm databases
ntop not started. Read /usr/share/doc/ntop/README.Debian.

The syslog reports the details:

[EMAIL PROTECTED]:/var/lib/ntop# tail -n 19 /var/log/syslog
Apr 11 12:57:56 localhost ntop[27026]:   **FATAL_ERROR** Not root, ntop 
shutting down...
Apr 11 12:57:56 localhost ntop[27026]:   CLEANUP[t3056392928]: ntop caught 
signal 2
Apr 11 12:57:56 localhost ntop[27026]:   THREADMGMT[t3056392928]: ntop 
RUNSTATE: SHUTDOWN(7)
Apr 11 12:57:56 localhost ntop[27026]:   CLEANUP[t3056392928] catching thread 
is MAIN
Apr 11 12:57:56 localhost ntop[27026]:   CLEANUP: Running threads
Apr 11 12:57:56 localhost ntop[27026]:   CLEANUP: Locking purge mutex (may 
block for a little while)
Apr 11 12:57:56 localhost ntop[27026]:   CLEANUP: Locked purge mutex, 
continuing shutdown
Apr 11 12:57:56 localhost ntop[27026]:   CLEANUP: Continues
Apr 11 12:57:56 localhost ntop[27026]:   FREE_HOST: Start, 1 device(s)
Apr 11 12:57:56 localhost ntop[27026]:   FREE_HOST: End, freed 0
Apr 11 12:57:56 localhost ntop[27026]:   PLUGIN_TERM: Unloading plugins (if any)
Apr 11 12:57:57 localhost ntop[27026]:   CLEANUP: Freeing device eth0 (idx=0)
Apr 11 12:57:57 localhost ntop[27026]:   CLEANUP: Clean up complete
Apr 11 12:57:57 localhost ntop[27026]:   THREADMGMT[t3056392928]: ntop 
RUNSTATE: TERM(8)
Apr 11 12:57:57 localhost ntop[27026]:   ===================================
Apr 11 12:57:57 localhost ntop[27026]:           ntop is shutdown...        
Apr 11 12:57:57 localhost ntop[27026]:   ===================================

It seems like ntop must run as root, or it will not run at all.

I have tried to fixed the problem by editing /etc/init.d/ntop and setting the 
line USER="root", but I continue to get the same error.
Some extra investigation led me to edit /var/lib/ntop/init.cfg and set the line 
USER="root" - PRESTO THIS WORKED:

[EMAIL PROTECTED]:/var/lib/ntop# sudo /etc/init.d/ntop start
Starting network top daemon: Fri Apr 11 13:26:17 2008  NOTE: Interface merge 
enabled by default
Fri Apr 11 13:26:18 2008  Initializing gdbm databases
ntop

So we have got a number of problems with ntop:

1. Ownership/permissions on the directories do not support ntop running as root 
(which seems to be a requirement for this program)
2. Wrong user configured in /etc/init.d/ntop
3. Wrong user configured in /var/lib/ntop/init.cfg
4. Why is the USER variable configured in 2 seperate places?

-- 
ntop permissions are not set right during install
https://bugs.launchpad.net/bugs/138682
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to