Re: Small correction in chown command to set the owner of the pgsql data dir correctly - Mailing list pgsql-docs

From David G. Johnston
Subject Re: Small correction in chown command to set the owner of the pgsql data dir correctly
Date
Msg-id CAKFQuwaaW_WmqOU+ZV3qJ6jcq1_Qo6yWCTXSerf-dT10JYKHmQ@mail.gmail.com
Whole thread Raw
In response to Small correction in chown command to set the owner of the pgsql data dir correctly  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: Small correction in chown command to set the owner of the pgsql data dir correctly
List pgsql-docs
On Saturday, February 6, 2021, PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/creating-cluster.html
Description:

"root# mkdir /usr/local/pgsql
root# chown postgres /usr/local/pgsql
root# su postgres
postgres$ initdb -D /usr/local/pgsql/data"
If these steps are followed then it still fails to initialize the DB as
chown only gives ownership to the pgsql directory but not the child
directories under pgsql,

If you follow those four steps exclusively then at the fourth step there are no child directories since step one created the pgsql directory and neither step two nor three created any other directories.

The reader has already been told that if the directory being pointed to exists it must be owned by postgres.

David J.

pgsql-docs by date:

Previous
From: Dariusz Daćko
Date:
Subject: Re: The synopsis of "ALTER DEFAULT PRIVILEGES" statement is too difficult to understand
Next
From: Tom Lane
Date:
Subject: Re: Small correction in chown command to set the owner of the pgsql data dir correctly