Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id FAA20595 for postgres-redist; Sat, 3 Dec 1994 05:01:23 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199412031301.FAA20595@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from nova.ucd.ie (nova.ucd.ie [137.43.1.5]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id FAA20585 for <postgres@nobozo.CS.Berkeley.EDU>; Sat, 3 Dec 1994 05:01:21 -0800
Message-Id: <199412031301.FAA20585@nobozo.CS.Berkeley.EDU>
Received: from nova.ucd.ie by nova.ucd.ie id <27815-0@nova.ucd.ie>;
          Sat, 3 Dec 1994 13:01:15 +0000
To: postgres@postgres.Berkeley.EDU, Brent.Burton@math.tamu.edu
Subject: Re: User semantics in Postgres
Date: Sat, 3 Dec 1994 13:01:15 +0000
From: Alan Byrne <alan@nova.ucd.ie>
X-Sender: alan@nova.ucd.ie
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Sat, 03 Dec 94 05:01:23 -0800
Resent-XMts: smtp


> 
> 
> Hello,
> 
> I am trying to create a gateway between Postgres and HTTP and I'm
> running into some problems.
> 
> To make a long story short, httpd normally runs as user nobody.  I added
> nobody to the database as userid 65534 (same as unix), but postgres
> later reports it as -2 (the 16-bit signed representation of 65534).
> Thinking this may be the problem, I then create user stupid (uid 25)
> and add stupid to the database.  In the meantime, httpd is restarted
> and configured to run as stupid (so the gateway will be setuid stupid).
> 
> Neither of the above techniques worked; the monitor fails with the error:
> "/usr/local/postgres/bin/monitor: could not find a valid user name"
> 
> Can somebody please explain what the monitor looks for concerning
> uid/eid's?  Has anybody else solved a similar problem?
> 

We have developed a http/postgres system here and have had no problems once
the httpd is configured to run as a "normal" user.  Common practice is to set
up a uid and group, say www, for the httpd to run as.  This is also useful
when setting up access control.

Alan Byrne,
Projects Group Manager,
Computing Services,
University College Dublin.
http://slarti.ucd.ie/

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
