| From: | Thomas Kellerer <spam_eater(at)gmx(dot)net> |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: Window2012R2: initdb error: "The current directory is invalid." |
| Date: | 2016-01-19 12:07:55 |
| Message-ID: | n7l8us$ecq$1@ger.gmane.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
Huong Dangminh schrieb am 19.01.2016 um 11:49:
> I have failed in execute initdb in "c:\Windows\Temp\dir" folder as
> reproduce logs below. The OS's messages "The current directory is invalid."
> was returned.
c:\Windows has special protection and it is not really surprising that a
regular user isn't allowed to write into that directory.
When Postgres is started it drops all "Administrator" privileges
for security reasons (older versions would refuse to start as
Administrator) - and I think initdb is doing the same thing.
So it's understandable that it can't write to c:\Windows
Putting application data into c:\Windows (or "c:\Program Files" for that matter)
is an extremely bad idea to begin with (c:\Windows being even worse than "c:\Program Files")
You shouldn't be doing that anyway.
Thomas
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dang Minh Huong | 2016-01-19 13:45:19 | Re: Window2012R2: initdb error: "The current directory is invalid." |
| Previous Message | Huong Dangminh | 2016-01-19 10:49:24 | Window2012R2: initdb error: "The current directory is invalid." |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2016-01-19 12:14:57 | Re: Move PinBuffer and UnpinBuffer to atomics |
| Previous Message | Michael Paquier | 2016-01-19 12:00:08 | Re: COPY (... tab completion |