BUG #17164: Running initdb from default Administrator account results in error - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17164: Running initdb from default Administrator account results in error
Date
Msg-id 17164-be59fd288befd6ae@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17164
Logged by:          Thorsten Kampe
Email address:      thorsten@thorstenkampe.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
```


pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h
Next
From: Tom Lane
Date:
Subject: Re: BUG #17163: spgist index scan statistics stays at 0