public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Re: initdb
Date: Mon, 15 Jan 2018 16:56:06 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
=?utf-8?q?PG_Doc_comments_form?= <[email protected]> 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
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: initdb
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox