[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CGI's
- To: eskimo-announce@eskimo.com
- Subject: CGI's
- From: Robert Dinse <nanook@eskimo.com>
- Date: Tue, 1 Jun 1999 17:21:21 -0700 (PDT)
- Resent-Date: Tue, 1 Jun 1999 17:21:25 -0700
- Resent-From: eskimo-announce@eskimo.com
- Resent-Message-ID: <"oYn_G.0.j5.4a7Lt"@mx1>
- Resent-Sender: eskimo-announce-request@eskimo.com
You can now run CGI's from your own cgi-bin directory without prior
review.
They will execute with your UID and GID. If you use a script which is
insecure, someone could clobber your files so be aware of this risk.
To do this, create your own cgi-bin directory under public_html. Make
the cgi-bin directory mode 711:
mkdir cgi-bin
chmod 711 cgi-bin
Put your CGI scripts in that directory. They MUST have an extension of
".cgi" regardless of whether they are compiled, Perl, Python, shell scripts,
etc.
Make the mode on the CGI scripts 700, or even better if you don't mind
having to change the modes, 500:
chmod 500 program.cgi
They are called as:
http://www.eskimo.com/~username/cgi-bin/program.cgi
If you have a virtual domain:
http://www.your-domain-name.com/~username/cgi-bin/program.cgi
... refers to a CGI script in your private cgi-bin directory ...
http://www.your-domain-name.com/cgi-bin/program.cgi
... refers to a CGI script in the system cgi-bin directory ...