BUG #17164: Running initdb from default Administrator account results in error

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: thorsten(at)thorstenkampe(dot)de
Subject: BUG #17164: Running initdb from default Administrator account results in error
Date: 2021-08-27 16:07:11
Message-ID: 17164-be59fd288befd6ae@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17164
Logged by: Thorsten Kampe
Email address: thorsten(at)thorstenkampe(dot)de
PostgreSQL version: 13.4
Operating system: Windows Server 2019
Description:

Running initdb from the default Administrator account or from an elevated
shell or with User Account Control (UAC) completely disabled results in an
error:

```
> initdb --username=postgres --encoding=UTF8 --locale=en --lc-collate=C
The files belonging to this database system will be owned by user
"Administrator".
This user must also own the server process.

The database cluster will be initialized with locales
COLLATE: C
CTYPE: en
MESSAGES: en
MONETARY: en
NUMERIC: en
TIME: en
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory
C:/scoop/apps/postgresql/current/data ... initdb: error: could not change
permissions of directory "C:/scoop/apps/postgresql/current/data": Permission
denied
```

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-08-27 18:33:04 Re: BUG #17163: spgist index scan statistics stays at 0
Previous Message Tom Lane 2021-08-27 13:47:37 Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h