HOME | SITEMAP | SUPPORT | FAQs
DOMAIN MANAGE/BACKROOM | BILLING
4Domains Web Hosting and Domain Registration
Account Login   WebMail

Web Hosting

Domain Names

Domain Auction

Solutions

Home > Support > Addonhelp > Cgilib > Finger

Finger CGI

The UNIX Finger service can be used to provide a form of user directory service. After you have installed the finger service, remote users will have the ability to query user profiles on your Virtual Server. User profiles include information such as full name, login name, home directory, as well as the contents of the ".plan", ".project", or ".forward" files. The ".plan"".project", and ".forward" files must be located in each of your users home directories (if they exist).

HTML Source for the finger client form

The HTML source below represents a finger client form.
<html>
<head>
<title>Finger Remote User on Remote Host</title>
</head>
<body>
<hr size = 3>
<h3>Finger Remote User on Remote Host</h3>
<form method="POST" action="/cgi-bin/library/finger/lookup.pl">
<input name="user" size=8 maxlength=16> <b>@</b>
<input name="host" size=24 maxlength=72>
<input type="submit" value="Lookup">
</form>
<hr size = 3>
</body>
</html>

If you are unfamiliar with the FORM HTML element, or would like to learn more about forms, see: Mosaic for X version 2.0 Fill-Out Form Support.

Installing the Finger CGI

To install the finger CGI on your Virtual Server you will need to do the following:
  1. Download the Finger Form
    You will need to download the Finger Client HTML source and store it somewhere in your "usr/local/etc/httpd/htdocs" directory structure. Feel free to customize the form, add graphics, etc. But be sure that the variable name for each input field is not altered.

  2. Untar the Finger CGI source code
    1. Telnet or SSH to your Virtual Server.
    2. change directories to your home directory (type "cd" and hit return)
    3. type "tar -xvf /usr/local/contrib/finger.tar"
      This will install the lookup.pl and util.pl files into your "www/cgi-bin/library/finger" directory.

  3. Customize the Appearance of the Finger CGI
    Two subroutines in the util.pl file are used to print out header and footer information. These functions are print_header_info and print_footer_info. Feel free to modify these functions such that the CGI outputs pages that are in synch with the motifs of the rest of your site.

Once you have completed the installation successfully, you will have a working finger form like the one shown below (go ahead and test it).


Why Us? | About | Contact Us
Knowledge Base | Support Request
Expired Domains | Domain Name Auctions | VPS Directory | DNS Tools
Hosting Terms | Domain Terms | Privacy Policy
Copyright © 2008 - 4Domains.com, Inc.


web hostinghostingdomaindomain namedomain namescheap web hostingecommerce website designdomain registration

Web Monitoring | SEO Technology | Hacker Scanner | DNS Tools | Online Backup