[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Sample of Hobbit server-side module (was: Who Test)



In <001e01c743d6$a5c32340$4902010a (at) rac.raccorp.corp> "Richard Leon" <rleon (at) racenter.com> writes:


>Am I missing something?
>The rootlogin.pl is not working .

Can you run it by hand ? Do this

   BB=/bin/echo BBDISP=0.0.0.0 ~hobbit/server/ext/rootlogin.pl

and feed it this input:

---- cut here ----
@@client#12345/localhost|1169985951.340108|10.0.0.152|localhost|sunos|sunos
[who]
hstoerne pts/0        Jan 28 00:07 (from somewhere)
root     ttyS0        Nov  1 11:13
@@
---- end of input ----

It should yield this output:

0.0.0.0 status localhost.login red ROOT login active

&red ROOT login detected!

hstoerne pts/0        Jan 28 00:07 (from somewhere)
root     ttyS0        Nov  1 11:13



I suspect it's something silly like your perl being in /usr/local/bin 
instead of /usr/bin (adjust the first line of the script if that is
the case).


Henrik