pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedusernames and passwords
7+ messages / 6 participants
[nested] [flat]
* usernames and passwords
@ 2002-07-19 12:56 Vicente Vives <vvives@telepolis.com>
0 siblings, 1 reply; 7+ messages in thread
From: Vicente Vives @ 2002-07-19 12:56 UTC (permalink / raw)
To: pgsql-admin
Hi .
I have a server running PostgreSQL Version 6.5, and i have a problem.
I grant some distinct privileges to some users (and that works). The problem
is that those user can log in with any password. Each user has a password
assigned but not matter the password the user use to log in, if the user
exists always will get access to the database.
Has anybony an idea?
Any response will be wellcome.
Thanks for all.
Vicent Vives.
^ permalink raw reply [nested|flat] 7+ messages in thread
* usernames and passwords
@ 2002-07-22 06:25 Vicente Vives <vvives@aimplas.es>
0 siblings, 0 replies; 7+ messages in thread
From: Vicente Vives @ 2002-07-22 06:25 UTC (permalink / raw)
To: pgsql-admin
Hi .
I have a server running PostgreSQL Version 6.5, and i have a problem.
I grant some distinct privileges to some users (and that works). The
problem
is that those user can log in with any password. Each user has a
password
assigned but not matter the password the user use to log in, if the user
exists always will get access to the database.
Has anybony an idea?
Any response will be wellcome.
Thanks for all.
Vicent Vives.
^ permalink raw reply [nested|flat] 7+ messages in thread
* usernames and passwords
@ 2002-07-22 10:16 Vicente Vives <vicent@aimplas.es>
0 siblings, 2 replies; 7+ messages in thread
From: Vicente Vives @ 2002-07-22 10:16 UTC (permalink / raw)
To: pgsql-admin
Hi .
I have a server running PostgreSQL Version 6.5, and i have a problem.
I grant some distinct privileges to some users (and that works). The
problem
is that those users can log in with any password. Each user has a
password
assigned but not matter the password the user use to log in, if the user
exists always will get access to the database.
Has anybony an idea?
Any response will be wellcome.
Thanks for all.
Vicent Vives.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: usernames and passwords
@ 2002-07-22 11:05 Oliver Elphick <olly@lfix.co.uk>
parent: Vicente Vives <vicent@aimplas.es>
1 sibling, 0 replies; 7+ messages in thread
From: Oliver Elphick @ 2002-07-22 11:05 UTC (permalink / raw)
To: Vicente Vives <vicent@aimplas.es>; +Cc: pgsql-admin
On Mon, 2002-07-22 at 11:16, Vicente Vives wrote:
>
> Hi .
> I have a server running PostgreSQL Version 6.5, and i have a problem.
> I grant some distinct privileges to some users (and that works). The
> problem
> is that those users can log in with any password. Each user has a
> password
> assigned but not matter the password the user use to log in, if the user
> exists always will get access to the database.
Look at $PGDATA/pg_hba.conf
This self-documenting file contains the access parameters.
Incidentally, version 6.5 is very old and buggy. You should consider
upgrading to the current version, 7.2.1
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Then Peter and the other apostles answered and said,
We ought to obey God rather than men."
Acts 5:29
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: usernames and passwords
@ 2002-07-22 11:08 Artur Pietruk <arturp@plukwa.pdi.net>
parent: Vicente Vives <vicent@aimplas.es>
1 sibling, 1 reply; 7+ messages in thread
From: Artur Pietruk @ 2002-07-22 11:08 UTC (permalink / raw)
To: Vicente Vives <vicent@aimplas.es>; +Cc: pgsql-admin
On Mon, Jul 22, 2002 at 12:16:53PM +0200, Vicente Vives wrote:
> Hi .
Hello!
> I have a server running PostgreSQL Version 6.5, and i have a problem.
> I grant some distinct privileges to some users (and that works). The
> problem
> is that those users can log in with any password. Each user has a
> password
> assigned but not matter the password the user use to log in, if the user
> exists always will get access to the database.
Go to your $PGDATA directory, and check your pg_hba.conf. That's
file where you can confiure access do your db - it is wery well commented,
read it and you will find out what to do (if not, go to docs and read about
pg_hba.conf). It looks, that you may have "trust" enabled for local
connections (or for whatever way they are connecting), or something like
that, and that is why users are authenticated without their passwords.
Best regards,
--
--- Artur Pietruk, arturp@plukwa.net
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: usernames and passwords
@ 2002-07-22 12:15 Vicente Vives <vicent@aimplas.es>
parent: Artur Pietruk <arturp@plukwa.pdi.net>
0 siblings, 0 replies; 7+ messages in thread
From: Vicente Vives @ 2002-07-22 12:15 UTC (permalink / raw)
To: Artur Pietruk <arturp@plukwa.pdi.net>; +Cc: pgsql-admin
Artur Pietruk wrote:
>
> On Mon, Jul 22, 2002 at 12:16:53PM +0200, Vicente Vives wrote:
> > Hi .
>
> Hello!
>
> > I have a server running PostgreSQL Version 6.5, and i have a problem.
> > I grant some distinct privileges to some users (and that works). The
> > problem
> > is that those users can log in with any password. Each user has a
> > password
> > assigned but not matter the password the user use to log in, if the user
> > exists always will get access to the database.
>
> Go to your $PGDATA directory, and check your pg_hba.conf. That's
> file where you can confiure access do your db - it is wery well commented,
> read it and you will find out what to do (if not, go to docs and read about
> pg_hba.conf). It looks, that you may have "trust" enabled for local
> connections (or for whatever way they are connecting), or something like
> that, and that is why users are authenticated without their passwords.
>
That's correct!
In my pg_hba.conf the option 'trust' was enabled. If i changed it to
'crypt' the users can access correctly.
Thank you very much!
Vicent Vives.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: usernames and passwords
@ 2002-07-22 14:50 Ross J. Reedstrom <reedstrm@rice.edu>
parent: Vicente Vives <vvives@telepolis.com>
0 siblings, 0 replies; 7+ messages in thread
From: Ross J. Reedstrom @ 2002-07-22 14:50 UTC (permalink / raw)
To: Vicente Vives <vvives@telepolis.com>; +Cc: pgsql-admin
On Fri, Jul 19, 2002 at 02:56:41PM +0200, Vicente Vives wrote:
> Hi .
> I have a server running PostgreSQL Version 6.5, and i have a problem.
> I grant some distinct privileges to some users (and that works). The problem
> is that those user can log in with any password. Each user has a password
> assigned but not matter the password the user use to log in, if the user
> exists always will get access to the database.
>
> Has anybony an idea?
> Any response will be wellcome.
Check your pg_hba.conf setting for that host. Sounds like you've got
the last column set to 'trust'. Change it to 'crypt' is your most likely
solution. Check your docs.
Oh, and start planning your upgrade: 6.5 is getting to be very old code,
as is definitely not supported. Any bugs you hit will probably already
be fixed in 7.X, and there's lots of new features, too!
Ross
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2002-07-22 14:50 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-07-19 12:56 usernames and passwords Vicente Vives <vvives@telepolis.com>
2002-07-22 14:50 ` Ross J. Reedstrom <reedstrm@rice.edu>
2002-07-22 06:25 usernames and passwords Vicente Vives <vvives@aimplas.es>
2002-07-22 10:16 usernames and passwords Vicente Vives <vicent@aimplas.es>
2002-07-22 11:05 ` Oliver Elphick <olly@lfix.co.uk>
2002-07-22 11:08 ` Artur Pietruk <arturp@plukwa.pdi.net>
2002-07-22 12:15 ` Vicente Vives <vicent@aimplas.es>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox