From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,ccf63dc7b03bfe6b X-Google-Attributes: gidf72b0,public X-Google-Thread: fee84,ccf63dc7b03bfe6b X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,ccf63dc7b03bfe6b X-Google-Attributes: gid1020c6,public From: Steve Shah Subject: Re: [Q] How to setup restrictive finger service Date: 1997/02/27 Message-ID: <5f4q7j$lsu@skylark.ucr.edu>#1/1 X-Deja-AN: 221897128 References: <01bb3310$aeef6b00$afa292cf@micron1> Organization: Dept. Computer Science, UCR Newsgroups: comp.unix.admin,comp.unix.misc,comp.unix.osf.osf1 In comp.unix.admin Yijia Sun <608139226@worldnet.att.net> wrote: : Can any one tell me how to setup restrictive finger service system wise or : user bases... Two options -- one is to use the GNU fingerd package which you can fetch from ftp.cdrom.com in /pub/gnu or you can just write your own little fingerd. Either way, you need to go into your /etc/inetd.conf and set it to run your fingerd instead of the default one. Here is a sample fingerd I used at a site I admined remotely for a while -- it's not fancy but I'd like to think I have more important things to do than optimize fingerd. =) (btw... javabooks.net is no longer on the net, for those who may be curious...) #!/usr/local/bin/perl print << "ENDOFHEADER"; _______________________________________________________________________________ Welcome to Java Books Cafe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ENDOFHEADER $request = ; chop $request; chop $request; if ($request eq "") { print "For additional information about Java Books Cafe, visit\n"; print "our homepage at http://www.javabooks.net\n"; print "\n\n\n"; exit (0); } if ($request eq "uptime") { open (UPTIME,"uptime|") || die "Cannot read uptime.\n"; $info = ; close (UPTIME); print "$info\n\n\n\n"; exit (0); } if ($request eq "gbhp") { print "The Greg Bulmash Humor Page has moved to www.bulmash.com.\n"; print "\n\n"; exit (0); } print "If $request has a homepage here, you may want to try\n"; print "accessing it at http://www.javabooks.net/~$request\n"; print "\n\n"; -- _____________________________________________________________________________ Steve Shah (sshah@cs.ucr.edu) | SysAdmin/Coder/Gabbernaut/DJ/Writer/Minister http://www.cs.ucr.edu/~sshah | Assistant Systems Administrator, Dept. of CS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "If you find a bug, send me a bug report and I will explain [to] you why it is not a bug, but an interesting feature." -Laurent Montaron