|>
|> Due to security reasons we have disabled the finger from outside
|> of our machine. Now if someone tries to finger they get the
|> message " connection refused ", which some people find annoying.
|>
|> [Condensed: how do I replace the finger daemon?]
(1) Create the file /home/cheema/work/nofinger.c :
main()
{
printf ("get that finger outa my face!\n");
Quote:}
(you may wish to replace that message with something more apropos)
(2) compile with : cc -o nofinger nofinger.c
(3) now replace the "finger" line in /etc/inetd.conf to read :
finger stream tcp nowait root /home/cheema/work/nofinger nofinger
(4) find the process ID of inetd (29 on my machine, of course it depends
on your startup sequence) with ps aux, kill -HUP it to make inetd
re-read its configuration files.
Killing it outright and restarting will doubtless work too, but may mess
something else up.
(5) now "finger" your machine (using full netpath of course, i.e.,
Obviously move the files around to taste.
NOW, the * bit - the usual way to "secure" a local net is to firewall
it via the gateway, that is, you have a bridge machine which filters out
what gets to you. It does bring piece of mind to the suits, who don't know
their computers from their fax machines, and who certainly wouldn't like
just *anyone* from messing with the system parameters. For example, my
nofinger program *could* be written to have a hidden back door. And people
who are afraid of the finger program are generally pretty tense.
If you're firewalled, this won't work because the daemon will never be
woken up, because the datagram will never get there.
Maybe you know all this. If so, sorry for prattling on.
Good Luck.
-----------------
Bill Zettler