Re: Installation question

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Installation question
Date: 2003-03-11 16:27:29
Message-ID: Pine.LNX.4.44.0303110822430.19637-100000@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11 Mar 2003, Charles Hauser wrote:

> Is it advisable/required to:
> - create a 'postgres' user account which owns /data
> - and then create user 'chauser' as owner of a specific DB?

My understanding is that postgresql installs expecting a user 'postgres'
as its admin. What I've done in the past is install postgresql then, as
root, use adduser/useradd to create the 'postgres' user account.

Once I have postgres living here I 'su postgres' (from my username
account), start postgresql (with psql), then issue the command, 'createuser
<username> -c -u'. This creates my username as a superuser able to create
new databases and new users. Then I usually forget the password for the
'postgres' user because I do all the admin tasks as me. :-)

Make sense?

HTH,

Rich

Dr. Richard B. Shepard, President

Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
+ 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard(at)appl-ecosys(dot)com
http://www.appl-ecosys.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas T. Thai 2003-03-11 17:08:44 Foreign Key - Best Schema
Previous Message Charles Hauser 2003-03-11 16:06:00 Re: Installation question