Hi,
I have been coding a cgi to access some tables in a postresql RDBMS.
The cgi running as the default ... nobody ... or whatever, doesn't
have permission to access the tables and I can't access the postgres
configuration files to allow connection locally from the user associated with
the tables nor can I set a password for the user.
I figured if I execute the cgi under the uid of the table owner then the cgi
should be able to romp through the database as easily as I could when logged
in.
Does that ring true? If so, how do I get the scipt to run when I have enabled
the set-uid bit? I get the following error:
Can't do setuid
Thanks for any help,
Sarton