Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How can I check web server permissions for 'cgi-bin' directory ?

by pschoonveld (Pilgrim)
on Aug 02, 2000 at 15:25 UTC ( [id://25702]=note: print w/replies, xml ) Need Help??


in reply to How can I check web server permissions for 'cgi-bin' directory ?

I take it you don't have shell (ssh, telnet, etc) access to the machine.

The best thing to do is up a simple shell script.

#!/bin/sh # let the browser handle the data properly (w/o this it will fail) echo "Content-type: text/html\n\n"; # some cheesy data echo "Hello.";
Also, check with the admin and make sure the permissions are set properly on the cgi script. This can vary wildly from system to system, but a relatively sure best is a+x. FTP might give the perms with an "ls -als" command. in a+x mode, there should be 3 x's (owner, group, global).
  • Comment on Re: How can I check web server permissions for 'cgi-bin' directory ?
  • Download Code

Replies are listed 'Best First'.
RE: Answer: How can I check web server permissions for 'cgi-bin' directory ?
by merlyn (Sage) on Aug 02, 2000 at 17:23 UTC
    I prefer sending text/plain for the content header when doing tests like this. That way I don't have to worry about nasty less-thans and greater-thans and ampersands.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://25702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found