Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46969 - ntop-3.0: /var/lib/ntop created with root as owner, ntop can't write into this directory
Summary: ntop-3.0: /var/lib/ntop created with root as owner, ntop can't write into th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-06 09:41 UTC by Cahya
Modified: 2004-07-24 06:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cahya 2004-04-06 09:41:22 UTC
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.
Comment 1 Devon 2004-05-21 08:18:36 UTC
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?
Comment 2 Toralf Förster gentoo-dev 2004-05-28 14:47:56 UTC
Same thing for ntop-2.2c, after "chown -R nobody:nobody ntop/" also rrdtool works now.
Comment 3 Eldad Zack (RETIRED) gentoo-dev 2004-07-24 06:28:15 UTC
fixed in portage