pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-bugs@postgresql.org
Subject: Re: Window2012R2: initdb error: "The current directory is invalid."
Date: Tue, 19 Jan 2016 13:07:55 +0100
Message-ID: <n7l8us$ecq$1@ger.gmane.org> (raw)
In-Reply-To: <75DB81BEEA95B445AE6D576A0A5C9E9364CAD50F@BPXM05GP.gisp.nec.co.jp>
References: <75DB81BEEA95B445AE6D576A0A5C9E9364CAD50F@BPXM05GP.gisp.nec.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (9+ messages)  latest in thread

Message-ID: <n7l8us$ecq$1@ger.gmane.org>
Permalink:  ../n7l8us$ecq$1@ger.gmane.org/
Also on:    postgresql.org/message-id/n7l8us$ecq$1@ger.gmane.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Window2012R2: initdb error: "The current directory is invalid."
  In-Reply-To: <n7l8us$ecq$1@ger.gmane.org>
  References: <75DB81BEEA95B445AE6D576A0A5C9E9364CAD50F@BPXM05GP.gisp.nec.co.jp> <n7l8us$ecq$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox