in reply to file permissions and CGI scripts

Your webserver probably (most certainly) does not have the same permissions as you do.. Webservers run under the user nobody or a similarly low power account..

Check to see the user/group that the webserver is running (in Apache, httpd.conf has this or defaults to nobody:nobody)..
Change the CGI script ownership to your webserver account (best course), and make sure the access permissions are set right as well