pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql DBNAME -U USER (how to disable -U option?)
3+ messages / 2 participants
[nested] [flat]

* psql DBNAME -U USER (how to disable -U option?)
@ 2003-06-17 13:56 Mel Jamero <mel@gmanmi.tv>
  2003-06-17 14:13 ` Re: psql DBNAME -U USER (how to disable -U option?) scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Mel Jamero @ 2003-06-17 13:56 UTC (permalink / raw)
  To: pgsql-admin

to get to the psql interface we execute:

psql dbname -U user

is it possible to disable the -U option such that a user cannot invoke the
privileges of a database superuser such as postgres?

tried looking up pg_hba.conf regarding 'password' authentication, the man
pages and the archives but didn't get too lucky.

thanks in advance.

mel

Attachments:

  winmail.dat (application/ms-tnef, 1.7K) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psql DBNAME -U USER (how to disable -U option?)
  2003-06-17 13:56 psql DBNAME -U USER (how to disable -U option?) Mel Jamero <mel@gmanmi.tv>
@ 2003-06-17 14:13 ` scott.marlowe <scott.marlowe@ihs.com>
  2003-06-17 14:37   ` Re: psql DBNAME -U USER (how to disable -U option?) scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 1 reply; 3+ messages in thread

From: scott.marlowe @ 2003-06-17 14:13 UTC (permalink / raw)
  To: Mel Jamero <mel@gmanmi.tv>; +Cc: pgsql-admin

On Tue, 17 Jun 2003, Mel Jamero wrote:

> to get to the psql interface we execute:
> 
> psql dbname -U user
> 
> is it possible to disable the -U option such that a user cannot invoke the
> privileges of a database superuser such as postgres?
> 
> tried looking up pg_hba.conf regarding 'password' authentication, the man
> pages and the archives but didn't get too lucky.

Did you stop / start postgresql after the changes?  Make sure you don't 
have a line for "trust" 127.0.0.1 as well.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psql DBNAME -U USER (how to disable -U option?)
  2003-06-17 13:56 psql DBNAME -U USER (how to disable -U option?) Mel Jamero <mel@gmanmi.tv>
  2003-06-17 14:13 ` Re: psql DBNAME -U USER (how to disable -U option?) scott.marlowe <scott.marlowe@ihs.com>
@ 2003-06-17 14:37   ` scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 0 replies; 3+ messages in thread

From: scott.marlowe @ 2003-06-17 14:37 UTC (permalink / raw)
  To: Mel Jamero <mel@gmanmi.tv>; +Cc: pgsql-admin

On Tue, 17 Jun 2003, scott.marlowe wrote:

> On Tue, 17 Jun 2003, Mel Jamero wrote:
> 
> > to get to the psql interface we execute:
> > 
> > psql dbname -U user
> > 
> > is it possible to disable the -U option such that a user cannot invoke the
> > privileges of a database superuser such as postgres?
> > 
> > tried looking up pg_hba.conf regarding 'password' authentication, the man
> > pages and the archives but didn't get too lucky.
> 
> Did you stop / start postgresql after the changes?  Make sure you don't 
> have a line for "trust" 127.0.0.1 as well.

As a followup to that, look into ident method of authentication as well.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-06-17 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-17 13:56 psql DBNAME -U USER (how to disable -U option?) Mel Jamero <mel@gmanmi.tv>
2003-06-17 14:13 ` scott.marlowe <scott.marlowe@ihs.com>
2003-06-17 14:37   ` scott.marlowe <scott.marlowe@ihs.com>

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