Re: Postgres superuser & password on Red Hat; upgrade?
От | Oliver Elphick |
---|---|
Тема | Re: Postgres superuser & password on Red Hat; upgrade? |
Дата | |
Msg-id | 200101172114.f0HLE0t05873@linda.lfix.co.uk обсуждение исходный текст |
Ответ на | Postgres superuser & password on Red Hat; upgrade? (Laurel Williams <tech@clearwater-inst.com>) |
Список | 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.Elphick@lfix.co.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
В списке pgsql-novice по дате отправления: