Re: Post Install / Secure PostgreSQL

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Post Install / Secure PostgreSQL
Date: 2010-09-14 17:52:31
Message-ID: AANLkTikm5nbGPQKmwAPdAfi7-_bjwDissnP3QxJ2pnwB@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 14, 2010 at 9:50 AM, Carlos Mennens
<carlos(dot)mennens(at)gmail(dot)com> wrote:
> Secondly I am unable to find any information in the docs that show me
> how to set just the user password for 'carlos'. In MySQL I would use:
>
> SET PASSWORD FOR 'carlos'@'localhost' = PASSWORD('newpass');

You'd want to use "ALTER USER"

http://www.postgresql.org/docs/8.4/interactive/sql-alteruser.html

So:

ALTER USER carlos WITH ENCRYPTED PASSWORD 'password';

--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Mennens 2010-09-14 18:13:43 Re: Post Install / Secure PostgreSQL
Previous Message Alan Hodgson 2010-09-14 17:44:35 Re: Post Install / Secure PostgreSQL