Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* [Q] How to setup restrictive finger service
@ 1997-02-26  5:00 Yijia Sun
  1997-02-27  5:00 ` Steve Shah
  0 siblings, 1 reply; 2+ messages in thread
From: Yijia Sun @ 1997-02-26  5:00 UTC (permalink / raw)



Hi, there:

Can any one tell me how to setup restrictive finger service system wise or
user bases...

TIA



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Q] How to setup restrictive finger service
  1997-02-26  5:00 [Q] How to setup restrictive finger service Yijia Sun
@ 1997-02-27  5:00 ` Steve Shah
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Shah @ 1997-02-27  5:00 UTC (permalink / raw)



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






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-02-27  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-26  5:00 [Q] How to setup restrictive finger service Yijia Sun
1997-02-27  5:00 ` Steve Shah

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