Re: what are those 3 passwords for ?

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: "arnuld uttre" <arnuld(dot)mizong(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: what are those 3 passwords for ?
Date: 2008-10-13 12:41:47
Message-ID: 20081013084147.72215b1f.wmoran@collaborativefusion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to "arnuld uttre" <arnuld(dot)mizong(at)gmail(dot)com>:

> I see postgres has 3 password mechanism:
>
> 'createuser -d -P arnuld' -- which will ask for the password
> according to P flag used here.
> 'createuser -d -P -W arnuld' -- which will ask for the 2 passwords
> belonging to P and W flags.

In order to create a user, you have to connect as an existing user.
When you use -W, you tell the createuser command to _always_ prompt
for the (existing) password before allowing you to connect, even if
your configuration does not require password authentication.

So, even with the second command, you're still only using 1 password
when you create the account. I feel that the man page for createuser
explains this pretty well.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran(at)collaborativefusion(dot)com
Phone: 412-422-3463x4023

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2008-10-13 13:00:39 Re: multi recordset and data type check was: Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?
Previous Message Tom Lane 2008-10-13 12:26:19 Re: what are those 3 passwords for ?