Re: Granting permission to root.

From: "Roderick A(dot) Anderson" <raanders(at)acm(dot)org>
To: montfort <montie76(at)yahoo(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Granting permission to root.
Date: 2002-07-25 13:40:20
Message-ID: Pine.LNX.4.33.0207250630500.15072-100000@main.cyber-office.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 24 Jul 2002, montfort wrote:

> How can I grant permission to root so that the root user can create
> and drop databases?

From a UNIX/Linux command prompt as root

su - postgres
createuser --createdb --adduser root

From a psql prompt logged in as postgres to template1

CREATE USER root CREATEDB CREATEUSER;

Other options for assigning passwords, groups and other options is
avaliable by doing

createuser -?

from the command prompt or

\h create user

from the psql prompt

Actually the best deal is to buy, both or either, Bruce's book, The
Mammoth book (O'Reilly) or check out the docs.

Rod
--
"Open Source Software - Sometimes you get more than you paid for..."

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Elielson Fontanezi 2002-07-25 13:52:13 UDML
Previous Message Bjoern Metzdorf 2002-07-25 13:40:18 Re: erserver