Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id B93064758F8 for ; Sat, 27 Apr 2002 01:33:19 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g3R5XCF27542; Sat, 27 Apr 2002 01:33:12 -0400 (EDT) From: Bruce Momjian Message-Id: <200204270533.g3R5XCF27542@candle.pha.pa.us> Subject: Re: pg_shadow password In-Reply-To: <20020427042855.GA32426@masq.ingdesi.net> To: Eduardo Gargiulo Date: Sat, 27 Apr 2002 01:33:12 -0400 (EDT) Cc: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200204/343 X-Sequence-Number: 7607 ]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, Pennsylvania 19026