From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Laurel Williams <tech(at)clearwater-inst(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Postgres superuser & password on Red Hat; upgrade? |
Date: | 2001-01-17 21:13:59 |
Message-ID: | 200101172114.f0HLE0t05873@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Laurel Williams wrote:
>The only way I can become Postgres is to log in as myself (Laurel),
>become substitute user--root by typing "su" and entering the root
>password, then typing su - postgres--thus bypassing the postgres
>password. But that makes Postgres also root, which I understand to be
>very bad thing. I have used this technique to make Laurel a database
No, this is not the case. su makes you become the user named, root by
default. Your first su makes you root; the second one makes you
postgres. This is perfectly OK and the right way to do it.
>user, but how can I make Postgres a DBA login with full privileges who
>is NOT root? What is the method to give Postgres a new password and/or
>discover the old one?
ALTER USER postgres WITH PASSWORD newpassword;
You need createuser privileges to use CREATE USER or ALTER USER.
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"And, behold, I come quickly; and my reward is with me,
to give every man according as his work shall be."
Revelation 22:12
From | Date | Subject | |
---|---|---|---|
Next Message | Ken Corey | 2001-01-17 22:29:59 | Re: Yikes! Bitten by line length? |
Previous Message | Johnathon Smith | 2001-01-17 18:51:18 |