Jimmy,
    Sorry I had not read this post before I replied to the other.

You need the permissions on a folder to be readable and executable in order for people 
to read what
is in that folder period (not just execute scripts).  So your folder needs to be 
permissions 755.
Your script must be readable and executable in order for somebody to run your script, 
so again
permissions 755.
3 digit permission assignments:
- first position is the file owners permissions
- second position is the file groups permissions (permissions for everyone in the 
group of the user
who owns the file)
- third position is the permissions for the whole world.

how to get a permission digit:
4 = read
2 = write
1 = execute

Add all of the allowed permissions to get the permission digit
example, 7 allows anything, 6 is read and write, 5 is read and execute.

Directories are kinda strange because you have to be able to "execute" them in order 
to get a
directory listing.

Regards,
David




----- Original Message -----
From: "Jimmy George" <[EMAIL PROTECTED]>
To: "cgi" <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 1:02 AM
Subject: real beginners stuff


Hello World

If I logon to the web via (say) server_a and then start this script in server_b
which has the code in its cgi-bin folder

#! /usr/bin/perl -w
#
use CGI qw(:standard);
#use strict;
#
print <<END_of_file;
Content-type: text/html

<html>
<head><title>Server Environment</title></head>
<body>
<h2>This server is:</h2><br><br>
Server Name: $ENV{SERVER_NAME}
Port Number: $ENV{SERVER_PORT}
Server Software: $ENV{SERVER_SOFTWARE}
</body></html>
END_of_file

should I get to see the %ENV details of server_a?

I am getting a 500 error. Permissions are set to 711 for the script and
701 for the folder.

cheers

Jimmy George


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to