Re: your mail

From: "Brett W(dot) McCoy" <bmccoy(at)lan2wan(dot)com>
To: "Ilhuicatzi Cortes J(dot) Henry" <ic94006(at)solar6(dot)ingenieria(dot)uatx(dot)mx>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: your mail
Date: 1999-05-13 00:00:41
Message-ID: Pine.BSI.3.91.990512195507.15112A@access1.lan2wan.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Wed, 12 May 1999, Ilhuicatzi Cortes J. Henry wrote:

> Im trying to run this CGI.
>
> #!/usr/bin/perl -w
>
> use Pg;

I recommend using the CGI module for perl CGI. It'll make your life a
lot easier (you don't need to use the here documents).

> I think that all it's O.K and then i try to run it in a browser and i
> get the next result.
>
> Conectado a la base de datos: henric
> ERROR: FATAL 1: SetUserId: user 'nobody' is not in 'pg_shadow'
>
> What's wrong?
>
> Im using Pg in the new Style.

Your web server typically intiates connections under user 'nobody', for
security reasons (nobody usually has no default shell, so crackers can't
use it to break into your system). You need to create a user in Postgres
also called 'nobody' so it cann access your database. You will then need
to grant whatever rights you need for 'nobody' to use your database (at
least give SELECT rights). I'm guessing you are using Apache and some
flavour of Unix, be it Linux, FreeBSD, etc.

Brett W. McCoy
http://www.lan2wan.com/~bmccoy
-----------------------------------------------------------------------
Admiration, n.:
Our polite recognition of another's resemblance to ourselves.
-- Ambrose Bierce, "The Devil's Dictionary"

In response to

  • at 1999-05-12 19:01:18 from Ilhuicatzi Cortes J. Henry

Browse pgsql-interfaces by date

  From Date Subject
Next Message Keith/Suzanne Barron 1999-05-13 03:39:29 error when make of JDBC driver
Previous Message Peter Harvey 1999-05-12 21:00:19 PostgreSQL - ODBC - unixODBC