After I have installed ntop-3.0, /var/lib/ntop is created with root as owner, but ntop is running as nobody, and it can't create any new files inside. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Error message: Fri May 21 11:15:30 2004 ntop v.3.0 SourceForge .tgz MT (SSL) Fri May 21 11:15:30 2004 Configured on May 21 2004 11:11:10, built on May 21 2004 11:11:53. Fri May 21 11:15:30 2004 Copyright 1998-2004 by Luca Deri <deri@ntop.org> Fri May 21 11:15:30 2004 Get the freshest ntop from http://www.ntop.org/ Fri May 21 11:15:30 2004 Initializing ntop Fri May 21 11:15:30 2004 Checking eth0 for additional devices Fri May 21 11:15:30 2004 Resetting traffic statistics for device eth0 Fri May 21 11:15:30 2004 DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Fri May 21 11:15:30 2004 Initializing gdbm databases Fri May 21 11:15:30 2004 Now running as requested user 'nobody' (65534:65534) Fri May 21 11:15:30 2004 **FATAL_ERROR** ....open of /var/lib/ntop/prefsCache.db failed: File open error Fri May 21 11:15:30 2004 1. Is another instance of ntop running? Fri May 21 11:15:30 2004 2. Make sure that the use you specified can write in the target directory If I chown nobody:nobody /var/lib/ntop/, ntop appears to start. Howver, I don't know if that is the best way to fix the problem. Perhaps a new ntop user/group?
Same thing for ntop-2.2c, after "chown -R nobody:nobody ntop/" also rrdtool works now.
fixed in portage