Skip site navigation (1) Skip section navigation (2)

Re: create user with password

From: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
To: sarlav kumar <sarlavk(at)yahoo(dot)com>
Cc: pgsqlnovice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: create user with password
Date: 2004-12-20 15:24:20
Message-ID: Pine.LNX.4.61.0412201722490.20269@emo.org.tr (view raw or flat)
Thread:
Lists: pgsql-novice
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Mon, 20 Dec 2004, sarlav kumar wrote:

> I logged in as postgres user and created a new user 'test' with a password.
> create user test with password 'test';
>
> But when I use the -U option to login with the new user 'test', it does 
> not ask for password and directly logs me in. If I use -u(without 
> capitalization), it asks for the username and password. I know that -u 
> is deprecated. Is there a way to get -U option to ask for the password 
> before logging in?? Or am I doing anything wrong here?

You have to enable password authentication first:

http://www.postgresql.org/docs/7.4/interactive/client-authentication.html

Regards,
- --
Devrim GUNDUZ 
devrim~gunduz.org				devrim.gunduz~linux.org.tr
 			http://www.tdmsoft.com
 			http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBxu6mtl86P3SPfQ4RAnQCAJwPfDAULJAfTmq7H5dSIoLW/5nWygCfdmHK
n1S7P7xIEueDP9qftsuc7rk=
=YpZE
-----END PGP SIGNATURE-----

In response to

pgsql-novice by date

Next:From: Marcin GilDate: 2004-12-20 15:25:05
Subject: Re: create user with password
Previous:From: Tom LaneDate: 2004-12-20 15:22:01
Subject: Re: Drop does not always drop

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group