Received: from citarum.cabi.net.id (citarum.cabi.net.id [202.53.253.66]) by postgresql.org (Postfix) with ESMTP id 5CDA2475484 for ; Thu, 4 Apr 2002 07:40:13 -0500 (EST) Received: from 3wsi.net (wwwinst11.metro.net.id [202.153.225.220]) by citarum.cabi.net.id (8.11.1/8.11.1) with SMTP id g34CWo207519 for ; Thu, 4 Apr 2002 19:32:50 +0700 Received: (qmail 23462 invoked from network); 4 Apr 2002 12:30:52 -0000 Received: from unknown (HELO 3wsi.net) (127.0.0.1) by localhost with SMTP; 4 Apr 2002 12:30:52 -0000 Received: from 202.153.225.221 (SquirrelMail authenticated user nasir@3wsi.net) by webmail.3wsi.net with HTTP; Thu, 4 Apr 2002 19:30:52 +0700 (WIT) Message-ID: <1302.202.153.225.221.1017923452.squirrel@webmail.3wsi.net> Date: Thu, 4 Apr 2002 19:30:52 +0700 (WIT) Subject: Re: How to create a user with password] From: "Nasir Simbolon" To: pgsql-admin@postgresql.org Reply-To: nasir@3wsi.net X-Mailer: SquirrelMail (version 1.0.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200204/51 X-Sequence-Number: 3940 Also you need to specify the file name of password file in AUTH_ARGUMENT parameter in pg_hba.conf file. TYPE DATABASE IP_ADDRESS MASK AUTH_TYPE AUTH_ARGUMENT Local all password passfile > use the utility pg_passwd. The argument is the file that will hold the > passwords > $pg_passwd passfile > Username:postgres > New password: > Re-enter new password: > > -----Original Message----- > From: Web Administrator [mailto:webadmin@ucsd-pps.ucsd.edu] > Sent: quarta-feira, 3 de abril de 2002 14:07 > To: pgsql-admin@postgresql.org > Cc: Jin, Hong > Subject: [ADMIN] How to create a user with password > > > Hi, all: > > In the file of pg_hba.conf, I give the following parameter: > > TYPE DATABASE IP_ADDRESS MASK > AUTH_TYPE AUTH_ARGUMENT > Local all > password > host all 127.122.122.0 255.255.255.0 > password > > Now look what I got: > > $su postgres > bash$psql template1 > $password > > What is the password for user 'postgres' ? How can I > create one for this user? > > bash$createuser dbadmin > Shall the new user be allowed to create database?(y/n) y > Shall the new user be allowed to create more new user? (y/n) y > password: 'dbadminpassword' > FATAL 1: password authentication failed for user "postgres" > Createuser: creation of user 'dbadmin' failed > > If I change the config setting to > > Local all trust > > I can login to template1 database and create users and > databases, but I fail to give a password to a user. Look: > > $su postgres > bash$createuser dbadmin with password 'dbpassword' > > Now it seems the 'dbpasswod' became the created user. > > Anybody knows how to create password for 'postgres' ? How to > create a user with password? > > -------------------------------------------- > Hong Jin > h1jin@ucsd.edu -- "Having nothing, nothing can he lose." -- William Shakespeare, "Henry VI" -- "Having nothing, nothing can he lose." -- William Shakespeare, "Henry VI"