I installed ntop on SuSE 9.2 but can not get the system to start the daemon. I have run 'ntop -A -u wwwrun' and set the admin password but running the rcntop script causes this error: Starting service ntop /usr/sbin/rcntop: line 69: 6836 Segmentation fault sudo -u $NTOP_USER /usr/sbin/passcheck ntop admin password is not yet set. Run ntop -A -u wwwrun manually unused I can start and run ntop manually from the command line with no problems the error seems to be in the rcntop script and passcheck. Any ideas? I've tried but can't find any man pages for passcheck to test options. -- Donald Grayson
On Thursday 27 January 2005 16:02, Donald Grayson wrote:
I installed ntop on SuSE 9.2 but can not get the system to start the daemon. I have run 'ntop -A -u wwwrun' and set the admin password but running the rcntop script causes this error:
Starting service ntop /usr/sbin/rcntop: line 69: 6836 Segmentation fault sudo -u $NTOP_USER /usr/sbin/passcheck
ntop admin password is not yet set. Run ntop -A -u wwwrun manually unused
Run ntop -A to set the password for the admin user. After that it should work. If not, go to /var/lib/ntop and delete the .db files. It will re-create them when you start again. Mike -- Powered by SuSE 9.2 Kernel 2.6.8 KDE 3.3.0 Kmail 1.7.1 For Mondo/Mindi backup support go to http://www.mikenjane.net/~mike 4:12pm up 4 days 23:20, 5 users, load average: 2.16, 2.13, 2.13
Mike wrote:
On Thursday 27 January 2005 16:02, Donald Grayson wrote:
I installed ntop on SuSE 9.2 but can not get the system to start the daemon. I have run 'ntop -A -u wwwrun' and set the admin password but running the rcntop script causes this error:
Starting service ntop /usr/sbin/rcntop: line 69: 6836 Segmentation fault sudo -u $NTOP_USER /usr/sbin/passcheck
ntop admin password is not yet set. Run ntop -A -u wwwrun manually unused
Run ntop -A to set the password for the admin user. After that it should work. If not, go to /var/lib/ntop and delete the .db files. It will re-create them when you start again.
Mike
I have already tried that, there is no problem with ntop's password databases and this is not an ntop problem. I have ntop running but I edited the the /etc/init.d/ntop script from: ## Start daemon with startproc(8). If this fails ## the echo return value is set appropriate. if ! sudo -u $NTOP_USER /usr/sbin/passcheck ; then echo -e -n "\nntop admin password is not yet set. " echo -e -n "Run \n\t\033[1mntop -A -u $NTOP_USER\033[m\nmanually " rc_status -u exit else if [ -z $NTOP_OPTIONS ]; then setup_options fi startproc -q $PROGRAM $NTOP_OPTIONS fi rc_status -v ;; to: ## Start daemon with startproc(8). If this fails ## the echo return value is set appropriate. ##if ! sudo -u $NTOP_USER /usr/sbin/passcheck ; then ## echo -e -n "\nntop admin password is not yet set. " ## echo -e -n "Run \n\t\033[1mntop -A -u $NTOP_USER\033[m\nmanually " ## rc_status -u ## exit ##else if [ -z $NTOP_OPTIONS ]; then setup_options fi startproc -q $PROGRAM $NTOP_OPTIONS ##fi rc_status -v ;; The issue is with passcheck segfaulting when attempting to validate the ntop password. Removing passcheck from the init script allows ntop to start with no problems. So what is happening with passcheck to cause the segfault? -- Donald Grayson
On Thursday 27 January 2005 9:04 am, Donald Grayson wrote:
I have already tried that, there is no problem with ntop's password databases and this is not an ntop problem. I have ntop running but I edited the the /etc/init.d/ntop script from:
The issue is with passcheck segfaulting when attempting to validate the ntop password. Removing passcheck from the init script allows ntop to start with no problems. So what is happening with passcheck to cause the segfault?
The $NTOP_USER isn't set, that causes the segfault. Check to make sure /etc/sysconfig/ntop.conf has a user configured, NTOP_USER="wwwrun" Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.8-24.11-default x86_64
participants (3)
-
Donald Grayson
-
Mike
-
Scott Leighton