Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!milton!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.programmer Subject: Re: how to put a program into a .plan file Message-ID: <24331:Sep2803:41:0090@kramden.acf.nyu.edu> Date: 28 Sep 90 03:41:00 GMT References: <978@bbt.UUCP> <2867@litchi.bbn.com> Organization: IR Lines: 12 In article <2867@litchi.bbn.com> rsalz@bbn.com (Rich Salz) writes: > ** Right now, this just keeps a count and runs fortune. A neat hack > ** would be to replace /usr/etc/in.fingerd with code that does a > ** getpeername()/gethostbyaddr(), and goes back to the requesting > ** host to do a finger there. Neat hack? It's absolutely trivial. You just run fingerd under attachport (-r) instead of inetd, and its environment will show a REMOTE variable with the remote host (and authenticated username if the remote host supports RFC 931). ---Dan