pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Authentication by password
2+ messages / 2 participants
[nested] [flat]

* Authentication by password
@ 2001-03-12 23:01  Peter Schuller <peter.schuller@infidyne.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Peter Schuller @ 2001-03-12 23:01 UTC (permalink / raw)
  To: pgsql-admin

Hello,

I'm sure this has been covered before, but the ML archive search engine is
down (?!).

After telling postgresql not to trust anyone, but always use password/crypt
as the authenticaton method (pg_hdb.conf), I can't seem to get the
postmaster to authenticate against the right password.

What I've done is:

1) Create user U with createuser
2) Log in as postgres to a database A
3) UPDATE pg_user SET passwd='mypassword' WHERE usename='U';

But after that 'mypassword' is not accepted when trying to log in as user U.

What am I doing wrong?

I was thinking the passwords might be encrypted in the db; but then the
"password" authentication mechanism would be impossible, so that can't be it.

Thank you,

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0x5584BD98 or 'Peter Schuller <peter.schuller@infidyne.com>'
Key retrival: Send an E-Mail to getpgpkey@scode.infidyne.com
E-Mail: peter.schuller@infidyne.com Web: http://scode.infidyne.com




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

* Re: Authentication by password
@ 2001-03-12 23:04  Grant <grant@conprojan.com.au>
  parent: Peter Schuller <peter.schuller@infidyne.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Grant @ 2001-03-12 23:04 UTC (permalink / raw)
  To: pgsql-admin

ALTER USER postgres WITH PASSWORD 'yourpassword';

On Mon, 12 Mar 2001, Peter Schuller wrote:

> Hello,
> 
> I'm sure this has been covered before, but the ML archive search engine is
> down (?!).
> 
> After telling postgresql not to trust anyone, but always use password/crypt
> as the authenticaton method (pg_hdb.conf), I can't seem to get the
> postmaster to authenticate against the right password.
> 
> What I've done is:
> 
> 1) Create user U with createuser
> 2) Log in as postgres to a database A
> 3) UPDATE pg_user SET passwd='mypassword' WHERE usename='U';
> 
> But after that 'mypassword' is not accepted when trying to log in as user U.
> 
> What am I doing wrong?
> 
> I was thinking the passwords might be encrypted in the db; but then the
> "password" authentication mechanism would be impossible, so that can't be it.
> 
> Thank you,
> 
> 




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


end of thread, other threads:[~2001-03-12 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-12 23:01 Authentication by password Peter Schuller <peter.schuller@infidyne.com>
2001-03-12 23:04 ` Grant <grant@conprojan.com.au>

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