pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feeddefault password for user postgres
2+ messages / 2 participants
[nested] [flat]
* default password for user postgres
@ 2011-04-01 01:50 Raphael Giovanini <raphaelgiovanini@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Raphael Giovanini @ 2011-04-01 01:50 UTC (permalink / raw)
To: pgsql-bugs
I`m change the default passwod, and not conect for this user. What the
default password?
Raphael Giovanini
+55-11-9938-6810
"O que pensais, passais a ser" (Gandhi)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: default password for user postgres
@ 2011-04-01 08:17 John R Pierce <pierce@hogranch.com>
parent: Raphael Giovanini <raphaelgiovanini@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: John R Pierce @ 2011-04-01 08:17 UTC (permalink / raw)
To: pgsql-bugs
On 03/31/11 6:50 PM, Raphael Giovanini wrote:
> I`m change the default passwod, and not conect for this user. What the
> default password?
there is no default password. on most unix and linux distributions, the
default authentication mode is set to 'ident' which means a given unix
user X can only connect as the postgres user X. initially, the only
postgres user is 'postgres', so...
(assuming you're on the typical unix/linux system, you didn't say)
$ sudo -u postgres psql
postgres=> alter user postgres password 'apassword';
postgres=> create user yerusername createdb createuser password
'somepass';
postgres=> create database yerusername owner yerusername;
postgres=> \q
$ ...
now as your regular user 'yerusername' you can connect to postgres, and
have the privileges to create new users and databases.
That sequence also modified the postgres user's password in case you
change the default authentication method to md5 (this is set in
pg_hba.conf, see the documentation for more details)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-04-01 08:17 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01 01:50 default password for user postgres Raphael Giovanini <raphaelgiovanini@gmail.com>
2011-04-01 08:17 ` John R Pierce <pierce@hogranch.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