pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ryan Williams <shrewsbury@louisiana.com>
To: pgsql-admin@hub.org
Subject: Re: a few simple questions
Date: Wed, 30 Aug 2000 10:00:28 -0700
Message-ID: <000901c012a3$ce6ea1e0$c330cc40@crusher> (raw)
References: <Pine.LNX.4.21.0008300010250.11339-100000@localhost.localdomain>

1.  A FAQ can be found at http://www.postgresql.org/docs/faq-english.html,
the a book is at http://www.postgresql.org/docs/awbook.html, searchable
archives of lists at http://www.postgresql.org/gen-info.html and lots of
documentation accessable via postgresql.org under the 'user's lounge'.
2.  My understanding is that permissions are based on objects within the
database, not the DB itself...  Example:  if user_a creates a table called
table_a in a DB, upon connection to the DB, user_b should not be able to
perform DB functions (such as select, update, delete, etc.) on table_a
unless specifically granted permissions to do so by user_a (see GRANT in the
PostgreSQL User Docs).  On another note, by adding entries in pg_hba.conf,
you can set up PostgreSQL to allow/reject connections to specific DBs from
specific ips (or blocks of ips) or usernames, while rejecting all other
connections.
3. Try ALTER USER username WITH PASSWORD 'password', where username is the
name of the user whose password is to be changed, and password is the new
password.  (From the PostgreSQL User Docs:) Only a database superuser can
change privileges and password expiration with this command. Ordinary users
can only change their own password
4.  What exactly do you need help with?

----- Original Message -----
From: "Donald Ball" <balld@webslingerZ.com>
To: <pgsql-admin@hub.org>
Sent: Tuesday, August 29, 2000 9:23 PM
Subject: [ADMIN] a few simple questions


> hiya guys. i'm new to postgresql but not to sql servers, UNIX, or open
> source software projects. i have a few simple questions:
>
> 1. is there a FAQ for postgresql in general or pgsql-admin in
> particular? how about archives of the lists on the web?
>
> 2. the documentation states that when a database is created, only the
> owner has any permissions on that database. however, when i access that
> database as another user, i can do anything i want. what gives?
>
> 3. how do you change a postgres user's password?
>
> 4. if someone's inclined to do some handholding, i'm trying to create a
> system consisting of a database and two postgres users (not real UNIX
> users). one should be able to insert, update, delete, and select, while
> the other should only be able to select. neither should be able to create,
> drop, or alter tables. both should be able to connect from a specific
> external ip address after authenticating themselves with an encrypted
> password. of course, if no one's inclined to hold my hand, i'm certain
> i'll muddle my way through it eventually.
>
> i'm using the postgresql-7.0.2-2 RPMs from ftp.postgresql.org. i have read
> or skimmed the postgresql documentation as well as the Bruce Momjian's
> book. i feel pretty stupid that i wasn't able to answer these basic
> questions on my own given the breadth and depth of the documentation
> available; i'm grateful for any assistance y'all can provide.
>
> - donald
>




view thread (3+ messages)  latest in thread

Message-ID: <000901c012a3$ce6ea1e0$c330cc40@crusher>
Permalink:  ../000901c012a3$ce6ea1e0$c330cc40@crusher/
Also on:    postgresql.org/message-id/000901c012a3$ce6ea1e0$c330cc40@crusher

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: shrewsbury@louisiana.com, pgsql-admin@hub.org
  Subject: Re: a few simple questions
  In-Reply-To: <000901c012a3$ce6ea1e0$c330cc40@crusher>
  References: <Pine.LNX.4.21.0008300010250.11339-100000@localhost.localdomain> <000901c012a3$ce6ea1e0$c330cc40@crusher>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox