[NTLUG:Discuss] init q (does it work or not?)

Richard Geoffrion ntlug at rain.lewisville.tx.us
Sun Jan 27 22:19:15 CST 2002


Brief: Running the command 'init q' did NOT seem to put into effect the
changes I made in /etc/inetd.conf

Verbose:  In preparation for some remote support/training with a client, I
tried to get the ttysnoop program installed on my Slack-8 box.  After
configuring the box for ttysnoop, I ran the 'init q' command but could not
make a telnet connection to the box.

( ttysnoop setup steps include setting up the /etc/snooptab, mkdir
/var/spool/ttysnoop, and editing the /etc/inetd.conf line to add the line:

telnet  stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetsnoopd

The original telnet line was commented out)


After checking other hosts.allow/deny files, reconfiguring firewall rules,
removing all routing and firewall rules to no avail...I pulled a page from
the Microsoft troubleshooting handbook.  I rebooted.  Upon reboot, the
ttysnoop program worked exactly as advertised.  YET, if I put the original
telnet line back in and issued an 'init q'....init wouldn't shutdown
ttysnoop and revert to the normal telnet daemon which is...

telnet  stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd

What gives?  Am I not using the 'init q' command properly?  The syslog is
recording that init is rereading the configuration file...it's just not
putting anything into effect.

-Richard

PS.  It's a good thing I had a previously compiled version of ttysnoop from
my old slack 7.1 box. I couldn't seem to compile ttysnoop on my slack 8 box.
I'd love to resolve the compilation errors for the pure joy and satisfaction
of getting the programs to compile.  Can anyone shed some light on what the
following means?


---------compile errors-------------------
gcc -O2 -c -o ttysnoops.o ttysnoops.c
In file included from ttysnoops.c:25:
/usr/include/linux/time.h:108: warning: `FD_SET' redefined
/usr/include/sys/select.h:83: warning: this is the location of the previous
definition
/usr/include/linux/time.h:109: warning: `FD_CLR' redefined
/usr/include/sys/select.h:84: warning: this is the location of the previous
definition
/usr/include/linux/time.h:110: warning: `FD_ISSET' redefined
/usr/include/sys/select.h:85: warning: this is the location of the previous
definition
/usr/include/linux/time.h:111: warning: `FD_ZERO' redefined
/usr/include/sys/select.h:86: warning: this is the location of the previous
definition
In file included from /usr/include/bits/utmp.h:24,
                 from /usr/include/utmp.h:30,
                 from ttysnoops.c:37:
/usr/include/sys/time.h:95: warning: `ITIMER_REAL' redefined
/usr/include/linux/time.h:117: warning: this is the location of the previous
definition
/usr/include/sys/time.h:98: warning: `ITIMER_VIRTUAL' redefined
/usr/include/linux/time.h:118: warning: this is the location of the previous
definition
/usr/include/sys/time.h:102: warning: `ITIMER_PROF' redefined
/usr/include/linux/time.h:119: warning: this is the location of the previous
definition
In file included from ttysnoops.c:25:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:88: redefinition of `struct timeval'
/usr/include/linux/time.h:90: parse error before `suseconds_t'
/usr/include/linux/time.h:90: warning: no semicolon at end of struct or
union
In file included from /usr/include/bits/utmp.h:24,
                 from /usr/include/utmp.h:30,
                 from ttysnoops.c:37:
/usr/include/sys/time.h:57: redefinition of `struct timezone'
/usr/include/sys/time.h:94: parse error before `0'
/usr/include/sys/time.h:108: redefinition of `struct itimerval'
ttysnoops.c: In function `authenticate':
ttysnoops.c:343: warning: passing arg 2 of `strcmp' makes pointer from
integer without a cast
make: *** [ttysnoops.o] Error 1
------end of compile errors -------------







More information about the Discuss mailing list