Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Steve Shah <sshah@cs.ucr.edu>
Subject: Re: [Q] How to setup restrictive finger service
Date: 1997/02/27	[thread overview]
Message-ID: <5f4q7j$lsu@skylark.ucr.edu> (raw)
In-Reply-To: 01bb3310$aeef6b00$afa292cf@micron1


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 = <STDIN>;
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 = <UPTIME>;
        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






      reply	other threads:[~1997-02-27  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-26  5:00 [Q] How to setup restrictive finger service Yijia Sun
1997-02-27  5:00 ` Steve Shah [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox