Postgres permissions

From CKAN

Jump to: navigation, search

These are the default Postgres 8.4 permissions settings (/etc/postgresql/8.4/main/pg_hba.conf):

# Database administrative login by UNIX sockets
local   all         postgres                          ident 

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD 

# "local" is for Unix domain socket connections only
local   all         all                            ident
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5 
# IPv6 local connections:
host    all         all         ::1/128               md5 

Therefore:

Superuser account

(See /etc/postgresql/8.4/main/pg_hba.conf)

$ sudo -u postgres psql postgres
postgres=# \password
$ psql -U postgres -l
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox