Replacing finger information

Replacing finger information

Post by Mubashir Chee » Wed, 28 Sep 1994 20:38:23



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.

I have noticed that some people have found a nice solution to this.
When a person fingers their machine they provide some helpful
information on who to send email to get information on the machine

-------------
 For information about Silicon Graphics, please call (415) 960-1980.


 or call (415) 390-3410.
------------

Could some kind soul describe briefly how something like this can be
setup ?

Thanks very much.


 
 
 

Replacing finger information

Post by Mark 'Enry' Komarins » Wed, 28 Sep 1994 22:05:23


: 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.

: I have noticed that some people have found a nice solution to this.
: When a person fingers their machine they provide some helpful
: information on who to send email to get information on the machine

: -------------
:  For information about Silicon Graphics, please call (415) 960-1980.
:  

:  or call (415) 390-3410.
: ------------

: Could some kind soul describe briefly how something like this can be
: setup ?

: Thanks very much.

Look in the /etc/inetd.conf file.  There should be a line looking like:
finger  stream  tcp     nowait  nobody  /usr/sbin/tcpd  in.fingerd -w

Replace the in.fingerd -w with a shell script or something that prints
out the information you want.  You can take out the /usr/sbin/tcpd
too, but that introduces more security risks, and if yr going to close off
finger, you'll want that security then.

--

Smile.  It makes people wonder what you're up to.

 
 
 

Replacing finger information

Post by Bill Zettl » Thu, 29 Sep 1994 06:02:51


|>
|> 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

 
 
 

Replacing finger information

Post by Mubashir Chee » Thu, 29 Sep 1994 18:49:29


Quote:>Look in the /etc/inetd.conf file.  There should be a line looking like:
>finger  stream  tcp     nowait  nobody  /usr/sbin/tcpd  in.fingerd -w

>Replace the in.fingerd -w with a shell script or something that prints
>out the information you want.  You can take out the /usr/sbin/tcpd
>too, but that introduces more security risks, and if yr going to close off
>finger, you'll want that security then.

 Thats the first thing I did. It doesn't work.


 
 
 

Replacing finger information

Post by Michael Kell » Fri, 30 Sep 1994 04:25:26


In comp.os.linux.admin,


Quote:

>Replace the in.fingerd -w with a shell script or something that prints
>out the information you want.  You can take out the /usr/sbin/tcpd
>too, but that introduces more security risks, and if yr going to close off
>finger, you'll want that security then.

A better solution is to USE the features of tcpd.

There are two files which determine whether or not a daemon gives out
information under tcpd:  hosts.allow and hosts.deny     (hosts_access(5))

You might like to do this:

<hosts.deny>:
fingerd: ALL : cat nofinger.text

<hosts.allow>:
fingerd: .your.domain

This says:  if anyone in my domain tries to finger accept the connection,
            otherwise, cat some text at them.

--
I've got them on the list. I've got them on the list.
   And they never will be missed. They *never* will be missed.

                                   -- Gilbert & Sullivan, _The Mikado_

 
 
 

Replacing finger information

Post by Timo Kokkon » Sat, 01 Oct 1994 08:47:41



> You might like to do this:
> <hosts.deny>:
> fingerd: ALL : cat nofinger.text
> <hosts.allow>:
> fingerd: .your.domain
> This says:  if anyone in my domain tries to finger accept the connection,
>             otherwise, cat some text at them.

I tried this but it didn't work. I put following line into
/etc/hosts.deny:

in.fingerd : ALL : /bin/cat /etc/nofinger.txt

(and yes, /etc/nofinger.txt is world readable...)

Now finger returns:
---

[technocore.slip.jyu.fi]

technocore:/root#
---

Even echo 'foo' as shell_command didn't produce any output when fingering...

--
-------------------------------------------------------111010-101101-101001---
 Timo Kokkonen, Student of Computer Science, University of Jyvaskyla, Finland

-------------------------------------"In space no one can hear you scream."---

 
 
 

Replacing finger information

Post by Alan C » Tue, 04 Oct 1994 23:09:02



>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.

>I have noticed that some people have found a nice solution to this.
>When a person fingers their machine they provide some helpful
>information on who to send email to get information on the machine


Replace the in.fingerd in /etc/inetd.conf with some nice program that prints
your message eg

#!/bin/sh
cat <<EOF
We are paranoid and won't tell you who is on.
EOF

And don't forget to disable rusers/rwho/all email services that people
might use to find out what users exist.

Alan
--
  ..-----------,,----------------------------,,----------------------------,,

 ``----------'`----------------------------'`----------------------------''

 
 
 

1. FINGER: How can I know who is fingering or fingered me?

Hi, netters,

Does anybody know if I can aware somebody is fingering me or once fingered
me? If yes, can you tell me how? I once saw such kind of discussions here. I
think it is enough to know which machine is fingering me.

Many thanks.

--Yang Wang
------------------------------
Dept. of Systems Design Engg.
University of Waterloo
Waterloo, Ont. Canada N2L 3G1

2. Foo and Bar, interesting question

3. how to change finger information

4. Installing without formating a slice

5. Help with Finger information

6. HP-DESKJET720C. Who is printing with the pbm2ppa from t.normat??

7. Getting more information out of "finger" locally

8. gcc 2.8.1 + binutils-2.8.1.0.29-2 genrated 2.0.32 kernel + Xfree86

9. outdated finger information

10. Can finger information on Solaris be changed

11. FINGER information manipulation

12. finger-information

13. Could you help me with finger information?