Re: Granting permission to root. - Mailing list pgsql-general

From Roderick A. Anderson
Subject Re: Granting permission to root.
Date
Msg-id Pine.LNX.4.33.0207250630500.15072-100000@main.cyber-office.net
Whole thread Raw
In response to Granting permission to root.  (montie76@yahoo.com (montfort))
List 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..."


pgsql-general by date:

Previous
From: "Bjoern Metzdorf"
Date:
Subject: Re: erserver
Next
From: Elielson Fontanezi
Date:
Subject: UDML