Re: [Re: Password?] - Mailing list pgsql-general

From Jasen Betts
Subject Re: [Re: Password?]
Date
Msg-id h325ge$4lm$2@reversiblemaps.ath.cx
Whole thread Raw
In response to [Re: Password?]  (Andreas Wenk <a.wenk@netzmeister-st-pauli.de>)
Responses Re: [Re: Password?]
List pgsql-general
On 2009-07-08, Andreas Wenk <a.wenk@netzmeister-st-pauli.de> wrote:
> Serge Fonville schrieb:
>>> *argh* - more detailed to avoid confusion. The auth method 'password' in
>>> pg_hba.conf means, that you will be asked for a password for the user you
>>> try to create a db with. If no user is given (with createdb -U [username]),
>>> this user is postgres ...
>>
>> Wasn't it that it uses the currently logged on user is used if no user
>> is specified?
>
> correct - so this will be postgres because other users are not allowed to use these
> programs ...
>
> /var/lib/postgresql/8.4/bin$ ./createdb test -p 5433
> createdb: could not connect to database postgres: FATAL:  role "duke" does not exist
>
> $ sudo su postgres
> postgres@duke-linux:~/8.4/bin$ ./createdb test -p 5433
> postgres@duke-linux:~/8.4/bin$
>
> auth method in pg_hba.conf is trust in this case.

if it's "trust" any user can do

~postgres/8.4/bin/createdb -U postgres -p 5433 test




pgsql-general by date:

Previous
From: "Hartman, Matthew"
Date:
Subject: Re: singletons per row in table AND locking response
Next
From: Andreas Wenk
Date:
Subject: Re: [Re: Password?]