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