| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Jerome Lyles <susemail(at)hawaii(dot)rr(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Permission Problems:-)? |
| Date: | 2004-01-28 02:20:44 |
| Message-ID: | 5417.1075256444@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Jerome Lyles <susemail(at)hawaii(dot)rr(dot)com> writes:
> On Tuesday 27 January 2004 06:41 am, Tom Lane wrote:
>> I don't think so --- the postmaster will actively refuse to start if you
>> try to run it as root. Better take another look at exactly what's
>> happening.
> Running the postmaster as root:
> adriel(at)linux:~> su
> Password:
> linux:/home/adriel # /etc/init.d/postgresql start
> Starting PostgreSQL
If you look into that startup script, you'll find it does a su to
postgres before trying to start the postmaster. The postmaster will
barf if you try to invoke it directly as root (this is a security
measure).
> I then created a database as the database superuser:
> postgres(at)linux:~> createdb mydb2
> CREATE DATABASE
Okay, looks like you are set: postgres is the DB superuser, and
should be able to create all the other database users you want.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2004-01-28 02:29:38 | Re: Manually authenticating users in pg_shadow |
| Previous Message | Tom Lane | 2004-01-28 02:15:31 | Re: Update Default (was: Touch row ?) |