in reply to opening a file using CGI

Yes to all of what ptum said.

As a possible fix, you can change permissions on your home directory and the file(s) the web users will need to access. However, this may present a security risk on multiple levels.