Re: [GENERAL] PostgreSQL - multiuser.

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: Memphisto <szoli(at)netvisor(dot)hu>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] PostgreSQL - multiuser.
Date: 1998-11-09 15:23:16
Message-ID: l03110700b26cb8338c7e@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 18:08 +0200 on 9/11/98, Memphisto wrote:

> I have the following problem: A Netscape Enterprise web server is running
> on an AIX where I installed a PostgreSQL DBMS. The web server is running
> on 'wwwin' account and it's cgis must have access to PostgreSQL tables.
> My question is that I can make table so that they can be manipulated from
> multiple accounts or shall I run the web server and PostgreSQL on the
> same account?

You can GRANT permissions on your tables to any account.

In my configuration:

User "postgres" is the postgres superuser. Postgres is running under user
"postgres".

I have given myself (and several other programmers) permission to create
databases. Therefore, all the databases I create do not belong to
"postgres" but to "herouth". I only use the "postgres" account when I want
to shut down or start up the postmaster. I use my own to create users and
databases.

And for the web server to access data, I grant permission to the specific
tables within the database, which the web server needs to read/write, to
the user "httpd" under which the webserver runs.

So it is pretty much flexible.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Memphisto 1998-11-09 16:08:58 PostgreSQL - multiuser.
Previous Message Bruce Momjian 1998-11-09 15:23:11 Re: [GENERAL] dump problems: