Re: initdb

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: initdb
Дата
Msg-id 10688.1516053366@sss.pgh.pa.us
обсуждение исходный текст
Ответ на initdb  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: initdb  (Scott Watson <rscottwatson@gmail.com>)
Список pgsql-docs
=?utf-8?q?PG_Doc_comments_form?= <noreply@postgresql.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


В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: initdb
Следующее
От: Scott Watson
Дата:
Сообщение: Re: initdb