Re: Installation question

From: Charles Hauser <chauser(at)duke(dot)edu>
To: Hadley Willan <hadley(dot)willan(at)deeperdesign(dot)co(dot)nz>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Installation question
Date: 2003-03-10 22:27:43
Message-ID: 1047335264.2308.61.camel@pandorina.biology.duke.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

As suggested by Andrew, adduser was not in the path I was in.

[chauser(at)gulliver pgsql]$ ls -l /usr/sbin/adduser
lrwxrwxrwx 1 root root 7 Jan 31 15:17 /usr/sbin/adduser -> useradd

>
> Therefore, try adding the postgres user manually and removing this step
> from the process. Or sudo to the account that CAN addusers to the box
> and run your install.
>

If I understand, you are saying that by running 'adduser postgres' then
I would be running as root - bad form, and that I am better off using
creatdb.

so I should;

- mkdir usr/local/pgsql/data

- /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

- /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile
2>&1 &

- creatdb -U chauser -W test

- /usr/local/pgsql/bin/psql test

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Charles Hauser 2003-03-10 22:28:59 Re: Installation question
Previous Message Andrew Sullivan 2003-03-10 22:02:38 Re: Installation question