From: | "Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk> |
---|---|
To: | "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Roles and passwds |
Date: | 2013-03-19 11:39:30 |
Message-ID: | 4E154FB60786D74BB4DFDC97BF991CAC02482A@EXXCMPD1DAG2.cmpd1.metoffice.gov.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Hi
I created the following role
postgres=# create role sde LOGIN PASSWORD 'passwd' SUPERUSER NOINHERIT CREATEDB;
CREATE ROLE
postgres=#
However from the command line as the postgres user I can do
-
-bash-4.1$ psql -d testdb -U sde
psql (8.4.13)
Type "help" for help.
testdb=#
So logging on to the testdb database without entering a password.
Is this expected behaviour?
More importantly my colleague can connect to the database as the sde user via a client side GUI by entering any value in the password dialogue box.
Doing the following didn't help:
testdb=# alter role sde WITH PASSWORD 'passwd';
ALTER ROLE
testdb=# alter role sde valid until 'infinity';
ALTER ROLE
How can I setup the passwd for the sde role?
Many thanks
Austen Birchall
Senior DBA
Met Office
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-03-19 13:57:47 | Re: Roles and passwds |
Previous Message | Marcel Ruff | 2013-03-18 18:02:52 | Re: org.postgresql.util.PSQLException: ERROR: invalid page header in block 5869177 of relation base/17291/17420 |