Re: initdb

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rscottwatson(at)gmail(dot)com
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: initdb
Date: 2018-01-15 21:56:06
Message-ID: 10688.1516053366@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

=?utf-8?q?PG_Doc_comments_form?= <noreply(at)postgresql(dot)org> writes:
> So I was trying to create a new db with initdb. I tried to run this with
> the postgres user after installing the server rpm and it failed with runuser
> may not be run as non-root users. So then for fun I tried to run init db
> as the root user which should have failed but instead it just reported
> initializing database ... OK

hmm, worksforme:

$ sudo initdb -D someplace
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.

Were you actually running initdb directly, or some script that perhaps
sudo'd internally?

regards, tom lane

In response to

  • initdb at 2018-01-15 21:30:24 from PG Doc comments form

Responses

  • Re: initdb at 2018-01-15 22:11:37 from Scott Watson

Browse pgsql-docs by date

  From Date Subject
Next Message Scott Watson 2018-01-15 22:11:37 Re: initdb
Previous Message PG Doc comments form 2018-01-15 21:30:24 initdb