Re: Access denied using a PERL CGI script
Posted in 2000
Paul King wrote:
> I was trying to get my "example" PERL script (which still works in a
> shell environment) to behave as a CGI script with the added HTML tags
> to see if I can at least generate a web page with a table of data. The
> PERL script on its own generates a table with little trouble.
>
> At the moment, I am trying to trace an "Access denied" error to the
> database. It is a stubborn error, that persists whether the ownership
> of the file is root.root or informix.informix. Under STARTI dbaccess,
> I see the database (testdb@telepath) as "public". The owner of the
> process which runs netscape is "informix." If anyone has any ideas,
> let me know.
>
> Just for the record, I am not using the CGI module in Perl. I am using
> a much smaller "perl-cgi.pm" module that does just the basics.
I am inferring from your message that your webserver runs as user
informix?
That's an odd choice, but should be OK.
Can you connect to testdb@telepath as user informix? Without providing
a
username or password, that is? I expect that something doesn't trust
something else. One of the key points is to be absolutely sure that you
know which user ID is being used by your CGI script. Verify it; don't
rely
on what you think it is.
--
Yours,
Jonathan Leffler (Jonathan.Leffler@Informix.com) #include <disclaimer.h>
Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN
"I don't suffer from insanity; I enjoy every minute of it!"