Re: pg_shadow password
От | Bruce Momjian |
---|---|
Тема | Re: pg_shadow password |
Дата | |
Msg-id | 200204270533.g3R5XCF27542@candle.pha.pa.us обсуждение исходный текст |
Ответ на | pg_shadow password (Eduardo Gargiulo <ejg-pgsql@ar.homelinux.org>) |
Список | pgsql-sql |
]Eduardo Gargiulo wrote: Checking application/pgp-signature: FAILURE -- Start of PGP signed section. > Hi all, this is my first message to the list. > > My question is how can i hide or encrypt the passwd field in pg_shadow? > I remember some PASSWORD() function to do that in old versions of > pgsql, but it didn't work on my db. (7.0.2) Use CREATE/ALTER USER username WITH ENCRYPTED PASSWORD 'test'; ^^^^^^^^^ or change the postgresql.conf variable: password_encryption = true and passwords will be stored encrypted without the ENCRYPTED keyword. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-sql по дате отправления: